Skip to content

Elisey-e/ParaCL

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

145 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ParaCL interpreter

About

ParaCL is a custom C-like language. This project provides an interpreter for the ParaCL language.

Code snippet in ParaCL

n = ?;
fact = 1;
iter = 1;

while (iter <= n) {
    fact = fact * iter;
    iter = iter + 1;
}

print fact;

To run it after(!!) building the program:

./ParaCL ./test/factorial.in

Supported language features

  • arithmetic, logical, and comparison operations
  • while loop
  • if statement
  • print statement
  • ? scan statement
  • chainable assignment

How to build

git clone https://github.com/Aliyaminim/ParaCL.git
cd ParaCL
cmake -S ./ -B build/
cd build/
cmake --build .

How to run the program

./ParaCL [file]

How to test(end to end) the program

make -s test

About

Vladimirov K.I. course homework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C++ 66.2%
  • Yacc 19.4%
  • Lex 6.7%
  • CMake 5.6%
  • Shell 2.1%