mirror of
https://github.com/ksherlock/mpw.git
synced 2024-11-21 09:30:55 +00:00
mow-make -- handle comments.
This commit is contained in:
parent
aae68c20dd
commit
5ebc0b276b
@ -31,6 +31,11 @@ LinkIIGS TheHeader.aii.obj IRModule.p.obj ?
|
||||
machine make;
|
||||
alphtype unsigned char;
|
||||
|
||||
comment := |*
|
||||
'\n' => { fhold; fgoto main; };
|
||||
any => {};
|
||||
*|;
|
||||
|
||||
main := |*
|
||||
|
||||
0xb6 '\n' => {
|
||||
@ -81,7 +86,10 @@ LinkIIGS TheHeader.aii.obj IRModule.p.obj ?
|
||||
token.append(ts + 1, te - 1);
|
||||
};
|
||||
|
||||
|
||||
'#' => {
|
||||
// comment to eol.
|
||||
fgoto comment;
|
||||
};
|
||||
|
||||
any => {
|
||||
token.push_back(*ts);
|
||||
|
Loading…
Reference in New Issue
Block a user