A website to help learn parsers
Tokeko is an educational platform designed to help users understand and learn about different types of parsers, grammar structures, and parsing techniques. With interactive features, you can explore complex parsing concepts in a visual and intuitive way.
try a very simple calculator here!
Tokeko allows you to define the grammar of the language you wish to recognize by specifying terminals, non-terminals, and regex patterns.
P -> E
E -> E '+' T
E -> E '-' T
E -> T
T -> %num
%num -> /[0-9]+/
'...'
).%
(e.g., %num
).Given the grammar above, the following expression can be parsed:
10+20-40
With Tokeko, you can:
After compiling a language or parsing a string, Tokeko breaks down the process step by step. You can click on each step to see the details and gain deeper insights into how the parsing works.
For more info about the parser itself and how to use the grammar, please visit the dotlr library, the rust library that this website uses