Mail Archives: djgpp/1996/05/12/21:07:18
I've been trying to use Bison to create a script language for an RPG. I
downloaded a little something about YACC off the net, it has helped a bit
(I don't remember what the file was called exactly) but I still have a
few questions.
I want to encorporate subroutines in my language. So, I thought that I might
be able to do that like this:
subroutine: sub_name '(' arguments ')' '{' expressions '}'
;
But I am lost as to how I would define arguments and expressions. For
arguments I need some way of passing muliple arguments, even no arguments,
with ',' characters separating each.
Something else that is starting to bother me, would I have to do a sweep
of my entire script looking for subroutines before I could run it? Because
I'ld have to know what subroutines are defined, where they are and the
arguments for each.
I think this may be a bit tricky for a beginner :)
<< If there is a better newsgroup to take this to, please tell me, I feel
extremely off-topic >>
--
O Nicholas Lynch
-|- br516 AT freenet DOT carleton DOT ca
/ \
- Raw text -