Examples: update lark.lark

Include relative imports and rule rewrite
This commit is contained in:
Rogdham 2019-02-20 11:39:32 +01:00
parent 2f6b97cfd3
commit 8ffce48c24
1 changed files with 2 additions and 2 deletions

View File

@ -10,10 +10,10 @@ token: TOKEN priority? ":" expansions _NL
priority: "." NUMBER
statement: "%ignore" expansions _NL -> ignore
| "%import" import_args ["->" TOKEN] _NL -> import
| "%import" import_args ["->" name] _NL -> import
| "%declare" name+ -> declare
import_args: name ("." name)*
import_args: "."? name ("." name)*
?expansions: alias (_VBAR alias)*