Is this an ASCII input or are the variables just pin states? Is the expression variable from one time to the next (that is, does the machine have to parse the expression) or is the expression set at compile time? Jim Wagner On Nov 25, 2012, at 2:08 PM, Chuck Hackett wrote: > I am looking for a simple expression evaluation routine for use in an AVR > embedded system. My needs are simple: > > - Binary logical operators: logical AND (&) and OR(|) > - Unary operator NOT(!) > - Parentheses > - Known (system) variables (T1, S1, etc.) > > Expressions such as: > (T1 | S1) & (T2 | S2) > > All values are logical (i.e.: True/False). > > Later I might add logical functions but that's down the road. > > Anyone have a favorite? > > Cheers, > > Chuck Hackett > "Good judgment comes from experience, experience comes from bad judgment" > 7.5" gauge Union Pacific Northern (4-8-4) 844 > http://www.whitetrout.net/Chuck > > [Non-text portions of this message have been removed]
Message
Re: [AVR-Chat] Simple Embedded Expression Evaluation
2012-11-25 by Jim Wagner
Attachments
- No local attachments were found for this message.