can u do this ???

  • Thread starter Mahesh Kumar. R
  • Start date
M

Mahesh Kumar. R

hello everybody, i'm new to this group and also new bie to vc++. i
want to develop a parser like program which can able to identify the
predefined wordings -> windows control events(vc++).
example :
if the user write like this in text file(config.file).,
/* user defined file */

@DRAW MYLINE LOC
@LOAD BITMAPP SOURCE ...
@DISPLAY TEXT LOC STRING

/*....................*/


my parser program able to read a line at a time from a file and call
the appropriate VC++ graphics routines such as
line(x,x,x,x),loadbitmap(x,x,x,x)etc..the parameters for this routines
are supplied during runtime.

please give me ur suggestion and way to approach in a algorithm
atleast.becoz this is my univ project.


Expecting from u'll script gurus,
Mahesh (b'lore)
 
E

EventHelix.com

This is off-topic for this group.

If your scripting language gets complicated,
use YACC to handle the grammer.

Sandeep
 
C

Christopher

Mahesh Kumar. R said:
hello everybody, i'm new to this group and also new bie to vc++. i
want to develop a parser like program which can able to identify the
predefined wordings -> windows control events(vc++).
example :
if the user write like this in text file(config.file).,
/* user defined file */

@DRAW MYLINE LOC
@LOAD BITMAPP SOURCE ...
@DISPLAY TEXT LOC STRING

/*....................*/


my parser program able to read a line at a time from a file and call
the appropriate VC++ graphics routines such as
line(x,x,x,x),loadbitmap(x,x,x,x)etc..the parameters for this routines
are supplied during runtime.

please give me ur suggestion and way to approach in a algorithm
atleast.becoz this is my univ project.


Expecting from u'll script gurus,
Mahesh (b'lore)

It is possible, but that is more of a scripting topic then a c++ one. look
for some scripting tutorials on the web. I have read a few on gamedev.net
that would be of help.
,
Christopher
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,142
Latest member
DewittMill
Top