Skip to content

mBerdis/IFJ_Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IFJ_Project2023

  • Team xberdi01
  • team members: Matej Koscelník, Samuel Drobný, Filip Halčišák, Maroš Berdis

Build & Run

  • Build: make in project directory
  • Clean: make clean to clear output folder
  • Run: make run or ./output/main < tests/input.txt > output.txt
  • Valgrind: make valgrind to run valgrind on compiled program
  • Test: make test
  • Test2: make test2

Documentation

Doxygen

  • enter command doxygen Doxyfile to generate the newest documentation
  • you can find generated documentation at html/index.html

Rules

// TODO: every rule-list accepts "COMMA list" f.e. "fun(, 5);"

1: -> EOFILE

2: -> EOLINE 3: -> eps 4: -> EOLINE 5: -> KW(if) LCB RCB 6: -> KW(while) LCB RCB 7: -> KW(func) ID LB RB LCB RCB

8: -> KW(let,var) 9: -> ID LB <arg_list> RB 9.5: -> ID // new na pracu s premenymi TODO prekonzultovat 10: -> ID <def_type> 10.25: <def_type> -> eps 10.5: <def_type> -> COLON KW(String, Double, Int)

11: -> KW(else) LCB RCB EOLINE 12: -> eps

13: -> EOLINE 14: -> eps

// 15: // 16:

17: -> ASSIGN 18: -> eps 19: -> ARROW KW(String, Double, Int) 20: -> eps

// function param list 21: <param_list> -> <param_list> // #TODO neistota v kode 22: <param_list> -> COMMA <param_list> 23: <param_list> -> eps 24: -> ID 25: -> UNDERSCORE 26: -> eps

27: -> EOLINE 28: -> eps 29: -> EOLINE 30: -> KW(if) LCB RCB <func_else> 31: -> KW(while) LCB RCB 32: ->

33: <func_else> -> KW(else) LCB RCB EOLINE 34: <func_else> -> eps 35: -> KW(return) 36: -> KW(return)

// #TODO UPDATE THIS, we are not checking localID COLON // id(localID: awdaw, 5) 37: <arg_list> -> 38: <arg_list> -> COMMA 39: <arg_list> -> eps 40: -> ID 41: -> INT 42: -> STRING 43: -> DOUBLE

44: -> QUESTIONM 45: -> eps

// will probably remove this, because it will be done in precedence analysis 26: -> LB RB 26: -> ID 26: -> INT 26: -> DOUBLE 26: -> STRING 27: -> NEG 27: ->

// int, double 28: -> ADD 28: -> SUB 29: -> MUL 30: -> DIV

// bool 29: -> EQ 29: -> LT 29: -> LE 29: -> GT 29: -> GE 29: -> NEQ

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •