Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 480 Bytes

README.md

File metadata and controls

39 lines (28 loc) · 480 Bytes

The Dumb Programming Language

Trying to create a praser with simple Grammar

Currently the Grammar Only Handels:

  • operators
  • identifiers
  • Numbers
  • White space
  • Simple while loop
  • if else statements
  • print statements

To try:

Create a file in called src/foo.dumb paste the below content

foo := 3
bar := 1+2*3
print foo
print bar

After that open the terminal and run below command

node index.js foo.dumb

It shoud print the result as

3
7