Cannot understand how import works #794
Unanswered
Serhioromano
asked this question in
Q&A
Replies: 1 comment 2 replies
-
It should be possible to import terminals defined in a separate file. Could you give an example? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a base file where I have basic structure and I want some other rules to be in the other file. I created another file and add
import "./others"
That is ok. But in that others file I want to use same terminals and it is highlighted as not imported.If I create separate file with terminals and import it to my main file and others, it is still not working, not imported.
Does that mean that in every grammar file I have to create terminals and if it required same terminals?
Beta Was this translation helpful? Give feedback.
All reactions