If you can't read please download the document
Upload
mohit-arora
View
15
Download
13
Embed Size (px)
DESCRIPTION
System Programming lab file covering all documents.
Citation preview
System programming
LAB FILE
AMITY SCHOOL OF ENGINEERING
&
TECHNOLOGY
SUBMITTED TO:SUBMITTED BY:
}
INDEX
S.No.
Date
Assignment
Remarks
}
Practical-1
AIM: WAP to create a Lexical Analyzer to count number of identifiers, constants and operators in a given expression.
CODE:
#include #include #include #include
#define ope(x)(x=='+'||x=='-'||x=='*'||x=='/'||x=='%'||x=='='||x=='^'||x==')'||x=='(')
#define alp(x) ((str[i]>='a'&&str[i]='A'&&str[i]='0'&&str[i]