Skip to content

piotrrusak/interpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Interpreter

Interpreter of a self-made programming language. Designed lexer, parser, and syntax analysis. It imitates a common programming language for better understanding. Self-designed inner-statement communication system.

Rules

Assigning example

a = 20;

If-else statement

if(a < 0) {
    a = a + 1;
} else {
    a = a - 1;
}

For-loop

for i = 1:20 {
    if(a > 10) {
        break;
    }
    a = a + 1;
}

While-loop

while(a > 0) {
    if(a == 0) {
        continue;
    }
    a = a - 1;
}

Print

print("something");

Return

return a;

To-Do List

  • Napraw nawiasy ( ) w obliczeniach
  • Dodaj funkcje
  • Dodaj losowanie
  • Dodaj wczytywanie wartości z terminala (inputy)

README został poprawiony, aby linie się pokrywały i wyglądały bardziej estetycznie. 🚀

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages