>>I use WinForms Microsoft ReportViewer in local mode.
>>
>>I want to use C# syntax in report expressions instead on VB syntax.
>>
>>How to use C# instead of VB.NET syntax ?
>>
>>I'm thinking about the following approaches:
>>
>>1. Create pre-processor which converts expressions in RDL file from C# to
>>VB. NET
>>
>>2. Replace all expressions with a method which takes C# expression as string
>>parameter, evaluates it returns result.
>>
>>
>>Any idea how to implement this ?
>>
>>Where to find any samples of C# expression evaluator or C# to VB .NET expression converter ?
>
>C has yacc, dialects have either yacc or bison - or both, which is an LARL(1) parser
>
>The cleanest way to attack the problem is with yacc/bison imo - suppose .net has something similar
>
>Then, you have to define the grammar, and take it from there
Thank you.
I'm thinking about implementing recursive expression parser.
This is probably simpler than using special tools, is'nt it ?
I think I can start with simple expression converter and add new functions and operators in needed.
Where to find sample of simple expression parser ?
Andrus