vassilych / cscs

CSCS: Customized Scripting in C#
MIT License
166 stars 47 forks source link

Is there a complete tutorial? #21

Open djlw78 opened 4 years ago

djlw78 commented 4 years ago

Is there a more complete tutorial to build a language like cscs or others from the ground up? It just seems harder then it needs to be to create a language, I know most people don't like to spoon feed others but there is no good way to learn because all information is scattered.

haifenghuang commented 4 years ago

Hi, @djlw78 , If you want to build a custom language like cscs, there are some good tutorials out there, you could have a look:

  1. Implementing a Custom Language Succinctly(by this author) - Split & Merge
  2. Crafting Interpreters(java, c) - BNF/EBNF
  3. Let’s Build A Simple Interpreter(python) - BNF/EBNF
  4. Writing An Interpreter In Go - Pratt Parsing

Hope this could help you!

djlw78 commented 4 years ago

@haifenghuang congrats that last one I actually would like to send money on