This project is read-only.
1
Vote

Problem with Member Read?

description

I am trying to use member read with the example in the documentation:
var function = context.CompileExpression<int>("(\"abc\" & \"def\").Length");
But get this error instead of the correct answer (6):
de.mastersign.expressions.SyntaxErrorException was unhandled
  HResult=-2146232832
  Message=Syntax error.
  Source=Mastersign.Expressions
  StackTrace:
       at de.mastersign.expressions.EvaluationContext.ParseAndCheckExpression(String input) in d:\Daten\Projekte\Mastersign.Expressions\Mastersign.Expressions\EvaluationContext.cs:line 671
       at de.mastersign.expressions.EvaluationContext.CompileExpression[TResult](String input) in d:\Daten\Projekte\Mastersign.Expressions\Mastersign.Expressions\EvaluationContext.cs:line 735
       at Points_Generator_CS.Classes.SimpleExpressionEvaluator.EvaluateExpression(String expression) in c:\Programming (Work)\dotNet\Points Generator v3\Source\Points Generator CS\Classes\SimpleExpressionEvaluator.cs:line 48
       at Points_Generator.frmMain.frmMain_Load(Object eventSender, EventArgs eventArgs) in C:\Programming (Work)\dotNet\Points Generator v3\Source\Points Generator\Forms\frmMain.vb:line 777
       at System.EventHandler.Invoke(Object sender, EventArgs e)
       at System.Windows.Forms.Form.OnLoad(EventArgs e)
       at System.Windows.Forms.Form.OnCreateControl()
       at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
       at System.Windows.Forms.Control.CreateControl()
       at System.Windows.Forms.Control.WmShowWindow(Message& m)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       at System.Windows.Forms.ContainerControl.WndProc(Message& m)
       at System.Windows.Forms.Form.WmShowWindow(Message& m)
       at System.Windows.Forms.Form.WndProc(Message& m)
       at System.Windows.Forms.RibbonForm.WndProc(Message& m) in c:\Programming (Work)\dotNet\_Standard Components by Others\Ribbon\Ribbon358 Custom _7Oct2013\SourceCode\System.Windows.Forms.Ribbon\RibbonForm.cs:line 65
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
  InnerException: Sprache.ParseException
       HResult=-2146233088
       Message=Parsing failure: unexpected '.'; expected end of input (Line 1, Column 16). recently consumed: " & "def")
       Source=Sprache
       StackTrace:
            at Sprache.ParserExtensions.Parse[T](Parser`1 parser, String input)
            at de.mastersign.expressions.EvaluationContext.ParseAndCheckExpression(String input) in d:\Daten\Projekte\Mastersign.Expressions\Mastersign.Expressions\EvaluationContext.cs:line 667
       InnerException: 
Any ideas? I have the latest version 0.4.2.

BTW, project looks great. Just try it out to see if it meets my needs.

Thanks, Steve

comments