Ac-Srikanth / dumbLang

Simple transpiler which takes a grammer from dumb.grammar file and tanspiles it to javascript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Simple transpiler which takes a grammer from dumb.grammar file and tanspiles it to javascript


Languages

Language:JavaScript 100.0%