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
Currently, a parser requires a rest and state parameter, and a parse result has a rest and state field.
These are both 'states' in the monad sense, and it might be useful for clients to have more state passed:
parse input (string)
parse position: index, line, column
table of operator precedences -- modeling this as state allows it to be dynamically (contextually) updated
Also, note that the current state field is pretty exclusively used for position tracking, even though its name doesn't indicate that. That's confusing.
The text was updated successfully, but these errors were encountered:
Currently, a parser requires a
rest
andstate
parameter, and a parse result has arest
andstate
field.These are both 'states' in the monad sense, and it might be useful for clients to have more state passed:
Also, note that the current
state
field is pretty exclusively used for position tracking, even though its name doesn't indicate that. That's confusing.The text was updated successfully, but these errors were encountered: