Dumb tweaks
This commit is contained in:
parent
00b4cd4702
commit
677e60bd27
1 changed files with 5 additions and 5 deletions
10
grammar.py
10
grammar.py
|
|
@ -116,11 +116,11 @@ class FineGrammar(Grammar):
|
|||
|
||||
@rule
|
||||
def export_statement(self) -> Rule:
|
||||
return (
|
||||
seq(self.EXPORT, self.class_declaration)
|
||||
| seq(self.EXPORT, self.function_declaration)
|
||||
| seq(self.EXPORT, self.let_statement)
|
||||
| seq(self.EXPORT, self.export_list, self.SEMICOLON)
|
||||
return alt(
|
||||
seq(self.EXPORT, self.class_declaration),
|
||||
seq(self.EXPORT, self.function_declaration),
|
||||
seq(self.EXPORT, self.let_statement),
|
||||
seq(self.EXPORT, self.export_list, self.SEMICOLON),
|
||||
)
|
||||
|
||||
@rule
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue