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.


leo





Reply via email to