nimly icon indicating copy to clipboard operation
nimly copied to clipboard

Provide simple example parse and generate simple programming language.

Open bung87 opened this issue 4 years ago • 2 comments

It's still long way for me doing things after reading a whole book. if you could provide a simple example that would be huge helpful.

bung87 avatar Jun 06 '20 00:06 bung87

We can provide an example of generating a parser of simple programming language. It is a TODO.

What do you mean in "generate simple programming language"? nimly is a lexer/parser generator and it is out of scope to support the full process to make compilers or processors. However, nimly works like de fact tools (lex and yacc). So, you can find easy examples using yacc and they are very helpful for you. (for example, https://github.com/search?q=tinyc+yacc , https://github.com/search?q=interpreter+yacc)

loloicci avatar Jun 13 '20 13:06 loloicci

some kind of translation process is fine. anyway make it as a task to todo list is fine. this project looks good to me, maybe I just need enough knowledge to work with it. thanks for your suggestion, I'll take look at these.

bung87 avatar Jun 13 '20 13:06 bung87