Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use C# syntax in report expressions
Message
De
28/03/2007 11:23:23
 
 
À
27/03/2007 07:30:42
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01208749
Message ID:
01209263
Vues:
15
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform