i wanna know how i can write in C a compiler for checking the multiplication and the division of course... ;)
manos
0
Newbie Poster
Recommended Answers
Jump to PostI hope this is what you had in mind. The enclosed function evaluates a string like 123/3.1 or 12345679*63 and returnes the calculated value. Enter this string in your main() and call the function.
/********************* calc_val.cf ****************************** ** ** Parse a calculator string (eg. 5.7/3.2 or 4.2*9.7) …
Jump to PostTry http://www.google.com and search for writing compilers.You will find loads of solid info on that.Also search for Lexical Analisis.
All 5 Replies
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
manos
0
Newbie Poster
FireNet
64
Posting Whiz in Training
Waskar
0
Newbie Poster
Waskar
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.