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
If you define a lexer niml lexer[MyToken] and then two parsers nimy parserOne[MyToken] and nimy parserTwo[MyToken] you get an error due to a redefinition of the function parse (parsegen.nim:1001)
The text was updated successfully, but these errors were encountered:
@fish-face Thank you for the reporting! I won't fix this, but maybe I can help you.
nimy is designed as a macro to make the parsing table and define the function parse for the table.
So, if you define two parse in one module (with the same token type), these names are conflicted.
If you define a lexer
niml lexer[MyToken]
and then two parsersnimy parserOne[MyToken]
andnimy parserTwo[MyToken]
you get an error due to a redefinition of the functionparse
(parsegen.nim:1001
)The text was updated successfully, but these errors were encountered: