I am quite nervous while asking this question, but let’s say one wants to create a language.

What materials & tools one could use to get started on this path of madness ??

EDIT: I wanted to create an alternative to Javascript😂 with a syntax similar to Bash

  • LuxSpark@lemmy.cafe
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    7 days ago

    I created a custom parser recently. I built it in c# and ANTLR4. You need to define grammar and then code the AST which is an object model to handle logic. Not as difficult as it sounds, and you can use ChatGPT or something to help with parts of it.