Skip to content

otr1v/language

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is my first version of my own language

how to use it?

  1. Write your program in input.txt according to syntax of my language:

    declaration of variable: int a = 0; | int a; | int a = b;

    if (bool_expression){ your commands }

    while (bool_expression) { your commands; end }

    "--" - comments

    a = b + c;

You can see some examples in input.txt

  1. Compile code using MakeFile
  2. Run your code using ./a < input.txt
  3. The output file is out.txt: this contains commands of my CPU project, so you can run output.txt as input to CPU
  4. have fun of it >3 P.S. I've changed stdout -> out.txt

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published