added code for indexing (commented out atm)

git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@169 4df02467-bbd4-4a76-a152-e7ce94205b78
This commit is contained in:
marcobaye 2020-05-15 15:33:00 +00:00
parent 665c579470
commit c07f373b53

View File

@ -868,7 +868,17 @@ static void expect_dyadic_operator(void)
case ')': // closing parenthesis
op = &ops_closing;
goto get_byte_and_push_dyadic;
/*
case '[': // indexing operator
GetByte(); // eat char
// two PUSH_OP in a row without checking could overrun the stack, so:
PUSH_OP(&ops_atindex); // first put high-priority dyadic on stack,
if (op_sp >= opstack_size)
enlarge_operator_stack();
PUSH_OP(&ops_openindex); // then low-priority special ops_openindex
alu_state = STATE_EXPECT_ARG_OR_MONADIC_OP;
return;
*/
// Multi-character dyadic operators
case '!': // "!="
if (GetByte() == '=') {