From 33665fe9935b0fb9d09f03d92e122e2c9be46508 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 17 Jan 2021 20:30:59 -0800 Subject: Added Javscript and simplified python imports --- grammars/python.bp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'grammars/python.bp') diff --git a/grammars/python.bp b/grammars/python.bp index 6928580..938b53e 100644 --- a/grammars/python.bp +++ b/grammars/python.bp @@ -17,4 +17,4 @@ class: class-def +(\N ..$) class-def: ^_|"class"|_id[_parens]_`: function: function-def +(\N ..$) function-def: ^_|"def"|_id parens `: -import: |"import"| _ (parens / *id%(_`,__)) [_ |"as"| (parens / *id%(_`,__))] +import: ^_["from"| ..>(|"import"|)] (|"import"|)%parens ..$%parens -- cgit v1.2.3