mirror of
https://github.com/ksherlock/x65.git
synced 2025-01-21 10:32:14 +00:00
Can evaluate characters by single quote '?'
This commit is contained in:
parent
eae936dd6a
commit
ab2015fc3d
4
x65.cpp
4
x65.cpp
@ -3200,8 +3200,8 @@ EvalOperator Asm::RPNToken(strref &exp, const struct EvalContext &etx, EvalOpera
|
|||||||
case '(': if (prev_op != EVOP_VAL) { ++exp; return EVOP_LPR; } return EVOP_STP;
|
case '(': if (prev_op != EVOP_VAL) { ++exp; return EVOP_LPR; } return EVOP_STP;
|
||||||
case ')': ++exp; return EVOP_RPR;
|
case ')': ++exp; return EVOP_RPR;
|
||||||
case ',':
|
case ',':
|
||||||
case '?':
|
case '?': return EVOP_STP;
|
||||||
case '\'': return EVOP_STP;
|
case '\'': if( exp[ 2 ] == '\'' ) { value = exp[ 1 ]; exp += 3; return EVOP_VAL; } return EVOP_STP;
|
||||||
}
|
}
|
||||||
// ! by itself is current scope, !+label char is a local label
|
// ! by itself is current scope, !+label char is a local label
|
||||||
if (c == '!' && !(exp + 1).len_label()) {
|
if (c == '!' && !(exp + 1).len_label()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user