shubhsin / SP-LAB-PROJECT

SP LAB PROJECT for IT 5th Semester, MIT Manipal. SWIFT Compiler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

##Usage -

  1. Install flex or a compatible yacc parser software
  2. To run the file type these commands in order
	lex proj.l
	yacc -d proj.y
	cc lex.yy.c y.tab.c -ll
	./a.out
  1. This yacc parser would validate a SWIFT language assignment operation like var x=5 or arithmetic operations like var z=5+9 Also validate a for index in 1...5 statement and a repeat while statement

About

SP LAB PROJECT for IT 5th Semester, MIT Manipal. SWIFT Compiler


Languages

Language:C 98.1%Language:Yacc 1.2%Language:Lex 0.6%