Skip to content

Commit

Permalink
Docs fix (Issue lark-parser#560)
Browse files Browse the repository at this point in the history
  • Loading branch information
erezsh committed Apr 15, 2020
1 parent 445c8d4 commit 227f5de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/grammar.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ When importing rules, all their dependencies will be imported into a namespace,
%import <module>.<rule>
%import <module>.<TERMINAL> -> <NEWTERMINAL>
%import <module>.<rule> -> <newrule>
%import <module> (<TERM1> <TERM2> <rule1> <rule2>)
%import <module> (<TERM1>, <TERM2>, <rule1>, <rule2>)
```

If the module path is absolute, Lark will attempt to load it from the built-in directory (currently, only `common.lark` is available).
Expand All @@ -246,7 +246,7 @@ The rule or terminal can be imported under an other name with the `->` syntax.
```perl
%import common.NUMBER

%import .terminals_file (A B C)
%import .terminals_file (A, B, C)

%import .rules_file.rulea -> ruleb
```
Expand Down

0 comments on commit 227f5de

Please sign in to comment.