guys, can u help me make a lexical analyzer that outputs invalid/valid only?
it would really help if you guys help me with this. this is my midterm project. thanks!!
techie2008
0
Newbie Poster
Recommended Answers
Jump to PostProbably. Read the sticky posts...
Jump to PostThat would depend on the complexity of the "language" you were attempting to parse?
A C expression would probably be do-able.
A C program would not.
Jump to PostWell, let's remember C language (it's almost so called expression language) lexical grammar...
Here it is expression part:C language expression tokens::
Identifiers:: all but sizeof
<letter|_>[<letter>|_|<digit>]...
----------------------------------Operators and punctuators:: one of
[ ] ( )
:
? .
+ - * / % ^ & | ~
! …
All 9 Replies
WaltP
2,905
Posting Sage w/ dash of thyme
Team Colleague
Salem
5,138
Posting Sage
techie2008
0
Newbie Poster
ArkM
1,090
Postaholic
techie2008
0
Newbie Poster
ArkM
1,090
Postaholic
Salem
5,138
Posting Sage
ArkM
1,090
Postaholic
techie2008
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.