Skip to content

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

Notifications You must be signed in to change notification settings

Raalzz/dumbLang

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published