mirror of
https://github.com/ksherlock/mpw.git
synced 2024-12-22 15:29:45 +00:00
ranged/count-based ;l listings
This commit is contained in:
parent
69cd091397
commit
ccd3273ff0
@ -182,6 +182,16 @@ stmt ::= expr(a) SEMIL EOL.
|
||||
Debug::List(a);
|
||||
}
|
||||
|
||||
stmt ::= expr(a) AT expr(b) SEMIL EOL.
|
||||
{
|
||||
Debug::List(a, (int)b);
|
||||
}
|
||||
|
||||
stmt ::= expr(a) COLON expr(b) SEMIL EOL.
|
||||
{
|
||||
Debug::List(a, b);
|
||||
}
|
||||
|
||||
|
||||
stmt ::= DREGISTER(a) EQ expr(b) EOL.
|
||||
{
|
||||
@ -232,6 +242,7 @@ unary(rhs) ::= BANG unary(a). { rhs = !a; }
|
||||
unary(rhs) ::= STAR unary(a). [BANG] { rhs = Debug::ReadLong(a); }
|
||||
|
||||
|
||||
|
||||
term(rhs) ::= LPAREN expr(a) RPAREN. { rhs = a; }
|
||||
term(rhs) ::= INTEGER(a). { rhs = a; }
|
||||
term(rhs) ::= DREGISTER(a). { rhs = cpuGetDReg(a); }
|
||||
|
Loading…
Reference in New Issue
Block a user