I am writing a simulator of the SECD machine in C# guided by the description on Wikipedia. I have the basic operations completed, but I am not sure how to implement the rap instruction.
I am currently writing a set expression evaluator which generates set< T > and set< set< T > >, the code below is to display the result of the expression.
We use the Jeks parser at present to evaluate expressions.I cannot see a way to evaluate string expressions with it - for example:
Update: I\'ve added an answer that describes my final solution (hint: the single Expr data type wasn\'t sufficient).
I need to allow my users to be able to define formulas which will calculate values based on data.For example
I want to read from file but, when I use inputAll or inputLine, it rea开发者_开发知识库d only 70 character from each line.