Skip to content

XelerT/Sber-LLVM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sber Stasyan

About

This is first task at Sber Compilers additional semester class. Flex and Bison were used to parse and track syntaxes errors.

Requirements

  • Cmake version 3.13.4
  • Flex
  • Bison

Install & Build

    $ git clone https://github.com/XelerT/Sber-LLVM.git
    $ cd Sber-LLVM/
    $ cmake -S . -B build -DCMAKE_BUILD_TYPE=Release && cmake --build build

Run

    $ cd build/
    $ ./stasyan input_file.txt

Code example

    Size_t size = 1;

    Int64_t start_position = 10;
    Int64_t mid_position   = 10;
    Int64_t end_position   = 10;

    True  bool = true;
    False bool = false;

    iF 10 tHeN print 42;

    String string = "String with string";
    String newline = "Devided by \n newline.\n";

    -- one line comment

    /* MY string with s1mb0|s\n /*/**/aaa/*aaa*/*/ */