> From: Jim Wagner > > 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? Expression is in ASCII and is evaluated at run time. The "known variables" I referred to are values known at run time - they are, in fact, the "occupied" / "unoccupied" state of tracks in a 7.5" railroad - this logic is part of the signal system logic. So: "(T1 & T2) | T3" evaluates to true if "Track 1 AND Track 2 are occupied, OR Track 3 is occupied" The expression is part of the configuration data loaded into the control node at the time it is configured by the user. 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
Message
RE: [AVR-Chat] Simple Embedded Expression Evaluation
2012-11-26 by Chuck Hackett
Attachments
- No local attachments were found for this message.