Skip to content

Commit

Permalink
Merge pull request #22 from Smattr/a73d13e9-cc69-4e53-9658-98ecb20d25cc
Browse files Browse the repository at this point in the history
Fix some comment typos in Python grammar.
  • Loading branch information
erezsh committed Apr 12, 2015
2 parents 0430a7b + d26a9dc commit f979722
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plyplus/test/python.g
@@ -1,6 +1,6 @@

start: module_header? stmts;
@stmts: stmt*; // A bit permissive, but will help with errornous code */
@stmts: stmt*; // A bit permissive, but will help with erroneous code */
@stmt: simple_stmt_list | block_stmt | empty_stmt ;
@simple_stmt_list: simple_stmt_list2 NL;
@simple_stmt_list2: simple_stmt ';'? | simple_stmt ';' simple_stmt_list2;
Expand All @@ -13,7 +13,7 @@ empty_stmt: NL | INDENT NL? DEDENT; // should handle in lexer level?
module_header: string NL;

// this import is a bit more permissive than the official one
import : IMPORT (module_name (AS NAME)? ) (',' module_name (AS NAME)? )* // import is wierd!
import : IMPORT (module_name (AS NAME)? ) (',' module_name (AS NAME)? )* // import is weird!
| FROM relative_module_name IMPORT (import_as_names|LPAREN import_as_names RPAREN|'\*')
;
module_name : NAME (DOT NAME)*;
Expand Down

0 comments on commit f979722

Please sign in to comment.