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
Is it possible to skip tokens when defining a lexer?
I want to split a string into a list of tokens without whitespace, but I don't know if Moo can do this:
The documentation needs to be updated to document moo.fallback (see #112).
As for the rest, I think Nathan's just demonstrating that since a moo lexer object is an Iterator, you can use filter() and map() which are built-in to JavaScript.
Is it possible to skip tokens when defining a lexer?
I want to split a string into a list of tokens without whitespace, but I don't know if Moo can do this:
Input string:
"while ( a < 3 ) { a += 1; }"
List of tokens:
["while","(","a","<","3",")","{","a","+=","1",",";","}"]
The text was updated successfully, but these errors were encountered: