Building a compiler – what we are aiming for

Siddharth - Jun 6 '21 - - Dev Community

Check out the previous post for some basic setup

First things first, sorry for delaying the code again!

Now, before we start, I wanted to clear up what exactly we are aiming at creating. I like to call it EnglishScript. The main things I want to convert are:

  • Primitives ("strings", 123 numbers)
  • Variable declarations
  // Normal js style
  let x = 12;
  // "English" style™
  let x be 12
  let the variable x be 12
Enter fullscreen mode Exit fullscreen mode
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .