mirror of
https://github.com/davidhalter/parso.git
synced 2025-12-10 14:41:58 +08:00
3.4 adaptions now everything in 3 is similar.
This commit is contained in:
@@ -7,16 +7,16 @@
|
|||||||
# with someone who can; ask around on python-dev for help. Fred
|
# with someone who can; ask around on python-dev for help. Fred
|
||||||
# Drake <fdrake@acm.org> will probably be listening there.
|
# Drake <fdrake@acm.org> will probably be listening there.
|
||||||
|
|
||||||
# NOTE WELL: You should also follow all the steps listed in PEP 306,
|
# NOTE WELL: You should also follow all the steps listed at
|
||||||
# "How to Change Python's Grammar"
|
# https://docs.python.org/devguide/grammar.html
|
||||||
|
|
||||||
# Start symbols for the grammar:
|
# Start symbols for the grammar:
|
||||||
# single_input is a single interactive statement;
|
# single_input is a single interactive statement;
|
||||||
# file_input is a module or sequence of commands read from an input file;
|
# file_input is a module or sequence of commands read from an input file;
|
||||||
# eval_input is the input for the eval() functions.
|
# eval_input is the input for the eval() functions.
|
||||||
# NB: compound_stmt in single_input is followed by extra NEWLINE!
|
# NB: compound_stmt in single_input is followed by extra NEWLINE!
|
||||||
file_input: (NEWLINE | stmt)* ENDMARKER
|
|
||||||
single_input: NEWLINE | simple_stmt | compound_stmt NEWLINE
|
single_input: NEWLINE | simple_stmt | compound_stmt NEWLINE
|
||||||
|
file_input: (NEWLINE | stmt)* ENDMARKER
|
||||||
eval_input: testlist NEWLINE* ENDMARKER
|
eval_input: testlist NEWLINE* ENDMARKER
|
||||||
|
|
||||||
decorator: '@' dotted_name [ '(' [arglist] ')' ] NEWLINE
|
decorator: '@' dotted_name [ '(' [arglist] ')' ] NEWLINE
|
||||||
|
|||||||
Reference in New Issue
Block a user