You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To solve this some variables will have to be substituted to get the desired behavior. But some languages naturally have variables. Take for example the following grammar
g = HerbGrammar.@csgrammar begin
Real = |(0:9)
Real = x
Real = Real + Real
Real = Real - Real
Real = Real * Real
end
If x is defined in the context, should it automatically substitute it? In this case likely not, but how do you define the difference?
Related to #69, it would be ideal to support something like the following use case when programmatically creating grammars.
or even something as simple as
Currently, you have to make use of
add_rule!
to achieve something like this:or
The text was updated successfully, but these errors were encountered: