The Pine programming language.
Go to file
Aodhnait Étaín a29dfc413c Add token caching to TokenStream
Now when calling peek, TokenStream will remember the token it parses and
store it in a field. Then, when calling next, it looks at that field and
if it's not empty, it returns it instead. This allows us to avoid having
to parse same token in the input two times, which ultimately results in
better performance.
2021-05-23 08:06:53 +01:00
src Add token caching to TokenStream 2021-05-23 08:06:53 +01:00
.gitignore first commit, nyan~ 2021-05-22 21:34:55 +01:00
Cargo.toml first commit, nyan~ 2021-05-22 21:34:55 +01:00