We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I often re-use the same grammar rules in multiple grammar files, so I want to save these rules in one file and import them into other grammar files.
If I defined a rule in a file named rules.peggy:
rules.peggy
function_call = a1:var_name "(" _ a2:exprs _ ")" {return a1+"("+a2+")";}
I would want to import it into another grammar file:
import rules.peggy
Does Peggy have a feature that allows grammar rules to be imported like this?
The text was updated successfully, but these errors were encountered:
We're currently talking about it here, and in a draft PR that isn't finished yet.
Sorry, something went wrong.
Also #417
I think #456 is the full fix for this.
Fixed by #456
No branches or pull requests
I often re-use the same grammar rules in multiple grammar files, so I want to save these rules in one file and import them into other grammar files.
If I defined a rule in a file named
rules.peggy
:function_call = a1:var_name "(" _ a2:exprs _ ")" {return a1+"("+a2+")";}
I would want to import it into another grammar file:
import rules.peggy
Does Peggy have a feature that allows grammar rules to be imported like this?
The text was updated successfully, but these errors were encountered: