At 6:48 PM +0100 2/20/04, Leopold Toetsch wrote:
Dan Sugalski wrote:

At 9:42 AM +0100 2/20/04, Leopold Toetsch wrote:

Started that now:

The syntax (proposed and current) is for PASM:

.pcc_sub @MAIN _main:

and for PIR:

.sub _main prototyped, @MAIN, @IMMEDIATE, @LOAD, @POSTCOMP


Let's skip the commas, mandate the properties come later, lower-case 'em, and toss the @. So that'd read, for PIR:

.sub _main prototyped main immediate load postcomp


As already said, "main" or "MAIN" are reserved words then and collide with exisiting labels. Its doable by introducing some flags, that these identifiers are only special after a .sub/.pcc_sub. But I don't like to mess around with the lexer too much. If someone speaks lex fluently, please jump in ;)
Getting rid of the commas is easy.

Hrm. I may take a shot at it, as I've been dealing with grammars far more than I'd like to be lately. If it's a problem then for now we can put preceding periods on them, to make it .main/.immediate/.load or whatever.
--
Dan


--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to