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 PostGiven an input of say
10*(x + 2)
Something which prints
Found "10"
Found "*"
Found "("
Found "x"
Found "+"
Found "2"
Found ")"
would be a useful thing to accomplish.When that works reliably, then think about adding handling for parentheses and operator precedence.
We're here …
All 9 Replies
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
Salem 5,265 Posting Sage
techie2008 0 Newbie Poster
ArkM 1,090 Postaholic
techie2008 0 Newbie Poster
ArkM 1,090 Postaholic
Salem 5,265 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.