Compiler Project

You might also like

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 6

Compiler construction project

unspecified language
group memebers:
moheez
anas Siddiqui
maaz tariq
Unspecified language
• It could be a common reason frameworks language that
pursuit the thought of having straightforward, simple and
to keep in mind watchwords and syntax.
• It could be a statically written language that includes a single
word for information sorts , capacities that fundamentally
perform the same activity but have numerous syntaxes.
Token table
Sample program with no error
in undefinedlib.h
num globlPrnt ( ) #startofprogram#
{
isValid even ;
untilSatisfied ( num i = 0 ; i < 5 ; i ++ ) {
console "enter no : " ;
store num ;
check num % 2 {
console "even no" ;
isValid = Yes ;
}
ifNot {
console "odd no" ;
isValid = No ;
}
}
out 0 ;
}
Sample program with error
IN UNDEFINEDLIB.H
NUM GLOBLPRNT ( ) #STARTOFPROGRAM#
{
ISVALID EVEN ;
UNTILSATISFIED ( NUM I = 0 ; I < 5 ; I ++ ) {
CONSOLE "ENTER NO : " ;
STORE NUM ;
CHECK NUM % 2 {
CONSOLE "EVEN NO" ;
2VALID = YES ;
}

 
IFNOT {
CONSOLE "ODD NO" ;
ISVALID = NO ;
}
}
OUT 0 ;
1A;
}
 
Any questions?

Thankyou !!

You might also like