Browse Source

Examples: update lark.lark

Include relative imports and rule rewrite
tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.6.6
Rogdham 6 years ago
parent
commit
8ffce48c24
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      examples/lark.lark

+ 2
- 2
examples/lark.lark 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)*



Loading…
Cancel
Save