Browse Source

Merge pull request #762 from ThatXliner/patch-1

📝 Updated docs
tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.11.1
Erez Shinan 3 years ago
committed by GitHub
parent
commit
a98c108bf5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      docs/grammar.md

+ 1
- 1
docs/grammar.md View File

@@ -268,7 +268,7 @@ When importing rules, all their dependencies will be imported into a namespace,
%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).
If the module path is absolute, Lark will attempt to load it from the built-in directory (which currently contains `common.lark`, `python.lark`, and `unicode.lark`).

If the module path is relative, such as `.path.to.file`, Lark will attempt to load it from the current working directory. Grammars must have the `.lark` extension.



Loading…
Cancel
Save