mirror of
https://github.com/uffejakobsen/acme.git
synced 2024-11-05 14:05:08 +00:00
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:
parent
665c579470
commit
c07f373b53
12
src/alu.c
12
src/alu.c
@ -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() == '=') {
|
||||
|
Loading…
Reference in New Issue
Block a user