We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I NEED IT TO DO;
Evaluate math expressions that are defined at run time. Easey implementation, flexibility, sturdiness and speed at the core of the product's design. Includes direct support for C and C+++, and more.
Speedy parsing and evaluations
Library of standard arithmetic, trigonometric, relational (comparison), and miscellaneous routines (for both numbers and strings). See complete list of operators and functions
User-defined operators and functions, with support for overloading, overshadowing, bootstrapping, or recursion; optional arguments, fixed or indefinite number of arguments; multi-statements separated by semicolons
User operator definitions can be infix, prefix, or postfix, and can be given a precedence level; an operator can be alphanumeric or be composed of symbols
User variables (and constants) who can be internal, or attached to a variable in your host program, or any valid memory addresses.
A user variable can be defined as a temporary local item
Selected definitions can be locked to prevent redefinition
Supported data types include: Byte, Integer, Long, Dword, Single, Double, Extended, Currency, SortedList, Table, LPCSTR (null-terminated string), FixedLength string, dynamic String, user-defined types, and lots more
Multi-threading
FPU control
Exception handling (for overflow, division by zero, etc.) and general error handling
User-defined character patterns and syntax constructs
Items (functions, variables, operators, ...) can be renamed, or undefined
I NEED CODE IN SOURCE. WHO CAN HELP??????
Is this a joke, or are you really that batshit crazy? Who's gonna give you their code for free you twit?
Download your source code here:
www.source_code_for_twits_and_succers.com
Enjoy.
THIS IS VERY IMPORTANT.
I LOOK TO SOURCEFORGE BUT IT IS RUBBISH. YOU KNOW THERE IS OPENSOURCE FOR IT????
PROJECT IS NEARLY LATE. HHHEEEEEELLLLLLPPPPPPP.
CHECK YOUR LINK. IT DOES NOT WORKING.
Try again. I was making final performance fine-tuning. It should work now!
NO. IT DOES NOT WORKING. WHY CANT YOU FIX IT????????
I'm trying, I'm trying!!!
You could submit this for your project. It has a few niggly glitches which I haven't yet figured out, but it should produce the right answer.
int evaluate ( char * expression ) { return strlen ( expression ) - 11; } void main ( void ) { int ans; ans = evaluate ( "what is 2+2" ); printf ( "the answer is %d\n" , ans ); }
There are no parsers that can evaluate arbitrary expressions. There can't be. A parser needs a grammar to know what to do.
There exists tools like Yacc, that allows a user to define a grammar and have the tool create the parser. Guess what - it requires a huge amount of work. Because the complexity of the grammar directly folows from how "arbitrary" expressions you want to be able to process. And the different rules of the grammar must map to code blocks that performs the actual actions.
By bye way - I want a camera that can view the world and automagically take photos (with good framing, exposure, focus, bokeh) when it sees something worthy. There must exists a number of good, open-source, solutions. Please help and link me some code. Need now!
Sew eye kin git dgre frum U nviercity n gradeate. Thn eye kin beee nGinNeRR. cee?