Re: parser needed
From: Programmer Dude (Chris_at_Sonnack.com)
Date: 01/30/04
- Next message: Programmer Dude: "Re: Please any one suggest me some project ideas"
- Previous message: Jan Panteltje: "Re: Mars Rover Not Responding"
- In reply to: Mahdiarnt: "parser needed"
- Next in thread: Ben Pfaff: "Re: parser needed"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 30 Jan 2004 14:27:18 -0600
Mahdiarnt wrote:
> In my program, I need a routin to turn the user input string of
> characters to a function. In fact the user is expected to write a
> mathematical function (of t, say) in an edit box and I want that
> function to be calculated for several arguments. So I need a parser.
> Is there any out there that I can copy in my source file? Or any other
> solution?
>
> I am writing it in Visual C++. The program itself is dialogue-based
> MFC, but that doesn't matter.
You're welcome to my code from when I went through Jack Crenshaw's
outstanding compiler tutorial. It's VC++ and comes in a compilable
project. This is "cc v2"--Crenshaw Compiler V2--and represents the
stage of the tutorial where he's got you compiling expressions and
assignments. It emits x86 assembly, but with a little tweaking is
probably exactly what you want.
http://www.Sonnack.com/WillCall/ccv2.zip
-- |_ CJSonnack <Chris@Sonnack.com> _____________| How's my programming? | |_ http://www.Sonnack.com/ ___________________| Call: 1-800-DEV-NULL | |_____________________________________________|_______________________|
- Next message: Programmer Dude: "Re: Please any one suggest me some project ideas"
- Previous message: Jan Panteltje: "Re: Mars Rover Not Responding"
- In reply to: Mahdiarnt: "parser needed"
- Next in thread: Ben Pfaff: "Re: parser needed"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|