Skip to content

VasilyMarkov/ParaCL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ParaCL

A pet-project for the development of a programming language

Build

Manual Build

$ cmake -S . -B release -DCMAKE_BUILD_TYPE=Release && cmake --build release

Auto Build

$ ./bld 

Auto Build debug mode

When you run the code, you will see ast tree in the console.

$ ./bld DEBUG_GRAMMAR

Run

App

    $./paracl < expression_file.dat

Example of Debug mode:

Example 1:

Input:

(1+3)*5+3*2;

Output:

            Num: 1
        OP: +
            Num: 3
    OP: *
        Num: 5
OP: +
        Num: 3
    OP: *
        Num: 2

Example 2:

Input:

(1+3)*(5+3)*2;

Output:

            Num: 1
        OP: +
            Num: 3
    OP: *
            Num: 5
        OP: +
            Num: 3
OP: *
    Num: 2

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published