Click here to Skip to main content
15,796,507 members
Home / Discussions / C#
   

C#

 
GeneralRe: Question about synchronization Pin
Jeff Varszegi25-Apr-04 22:08
professionalJeff Varszegi25-Apr-04 22:08 
GeneralRe: Question about synchronization Pin
Heath Stewart26-Apr-04 4:16
protectorHeath Stewart26-Apr-04 4:16 
GeneralRe: Question about synchronization Pin
Jeff Varszegi26-Apr-04 5:20
professionalJeff Varszegi26-Apr-04 5:20 
GeneralRe: Question about synchronization Pin
Heath Stewart26-Apr-04 5:25
protectorHeath Stewart26-Apr-04 5:25 
GeneralRe: Question about synchronization Pin
Mike Dimmick26-Apr-04 1:45
Mike Dimmick26-Apr-04 1:45 
GeneralRe: Question about synchronization Pin
Jeff Varszegi26-Apr-04 5:23
professionalJeff Varszegi26-Apr-04 5:23 
GeneralEvaluating expressions Pin
Yaron K.25-Apr-04 21:04
Yaron K.25-Apr-04 21:04 
GeneralRe: Evaluating expressions Pin
Jeff Varszegi25-Apr-04 21:37
professionalJeff Varszegi25-Apr-04 21:37 
I think your options are several. You can write your own parser and evaluator from scratch (I don't know your background, but you can look up recursive-descent parsing, the "Little Language" pattern, etc. for easy starters); use a code-emitting approach like the one in this Code Project article; or use a tool like YACC or JavaCC. I haven't taken the time to do a search, but I'm sure there's something similar to the last one out there for .NET, and if not, it would be a fun port to do.

I've also used database engines for this kind of stuff in the past, but I think if you can do it directly, it would be a much better approach. I was kind of iffy on the idea before I wrote my first small parser a long time ago, but it's really not a very big deal. Of course, I don't know how in-depth your evaluation requirements are, but I imagine they can't be all that intense if you were using something like SQL Server in the past.

.NET also has VBScript and JScript support; both of these scripting languages have built-in expression evaluation (check out the "eval" function in JScript). If you can call that stuff, you're probably golden.

Regards,

Jeff Varszegi
GeneralRe: Evaluating expressions Pin
Yaron K.25-Apr-04 21:45
Yaron K.25-Apr-04 21:45 
GeneralRe: Evaluating expressions Pin
Jeff Varszegi25-Apr-04 22:01
professionalJeff Varszegi25-Apr-04 22:01 
GeneralRe: Evaluating expressions Pin
Yaron K.26-Apr-04 2:35
Yaron K.26-Apr-04 2:35 
GeneralRe: Evaluating expressions Pin
Jeff Varszegi25-Apr-04 23:45
professionalJeff Varszegi25-Apr-04 23:45 
GeneralRe: Evaluating expressions Pin
Heath Stewart26-Apr-04 4:13
protectorHeath Stewart26-Apr-04 4:13 
GeneralClass Circular References Pin
Abner Mallidy25-Apr-04 19:40
Abner Mallidy25-Apr-04 19:40 
GeneralRe: Class Circular References Pin
Jeff Varszegi25-Apr-04 20:55
professionalJeff Varszegi25-Apr-04 20:55 
Questionhow to draw on a bitmap? Pin
lowiq25-Apr-04 19:08
lowiq25-Apr-04 19:08 
AnswerRe: how to draw on a bitmap? Pin
CWIZO25-Apr-04 22:25
CWIZO25-Apr-04 22:25 
GeneralRe: how to draw on a bitmap? Pin
lowiq25-Apr-04 22:58
lowiq25-Apr-04 22:58 
GeneralRe: how to draw on a bitmap? Pin
Heath Stewart26-Apr-04 4:08
protectorHeath Stewart26-Apr-04 4:08 
GeneralRe: how to draw on a bitmap? Pin
lowiq26-Apr-04 20:48
lowiq26-Apr-04 20:48 
GeneralRe: how to draw on a bitmap? Pin
Heath Stewart27-Apr-04 3:49
protectorHeath Stewart27-Apr-04 3:49 
GeneralRe: how to draw on a bitmap? Pin
lowiq27-Apr-04 4:47
lowiq27-Apr-04 4:47 
GeneralFormula Pin
DucLinh25-Apr-04 16:39
DucLinh25-Apr-04 16:39 
GeneralRe: Formula Pin
Nick Parker25-Apr-04 16:53
protectorNick Parker25-Apr-04 16:53 
GeneralRe: Formula Pin
Werdna25-Apr-04 18:19
Werdna25-Apr-04 18:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.