Grace Lang
Installing Bison
Install Bison 3.1 from this link.
Use the following commands to install:
tar -xvf bison-3.1.tar.xz
cd bison-3.1/
./configure && make && make install
Installing Flex
Install Flex using sudo apt-get install flex
(We are using Flex v.2.6.0).
Running the project
Clone the repository at git clone https://github.com/grsouza/czin.git
.
cd czin
make
./czin Name-of-file.cz
Tasks
Program
- program
Variables
- decVar
- listSpecVar
- specVar
- UsingVariable
Procedure
- decProc
Function
- decFunc
Parameters
- ParamsList
- SpecParams
- param
Comands
- stmt
Assignment
- stmtAtrib
- atrib
If statement
- stmtIf
While statement
- stmtWhile
For statement
- stmtFor
Loop interrupt statement
- stmtStop
Loop skip statement
- stmtSkip
Return statement
- stmtReturn
Procedure Call Statement
- stmtCallProc
Read Statement
- stmtRead
Write Statement
- stmtWrite
Statement Block
- Body
Expression
- Negative
- NOT
- Mult, Div, Mod
- Add, Sub
- GT, GEQT
- LT, LEQT
- EQ, DIFF
- AND
- OR
- Ternary OP