Branch: Tag:

1996-08-03

1996-08-03 14:00:19 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

names for opcodes added, more operaors names added

Rev: src/lex.c:1.12

195:   { "indirect", F_INDIRECT },   { "jump", F_BRANCH },   { "local function call",F_CALL_LFUN }, + { "local function call and pop",F_CALL_LFUN_AND_POP },   { "local function", F_LFUN },   { "local", F_LOCAL },   { "ltosval2", F_LTOSVAL2 },   { "lvalue to svalue", F_LTOSVAL },   { "lvalue_list", F_LVALUE_LIST },   { "mark", F_MARK }, -  + { "mark mark", F_MARK2 },   { "negative number", F_NEG_NUMBER },   { "number", F_NUMBER },   { "pop", F_POP_VALUE },
241:   { "branch if >=", F_BRANCH_WHEN_GE },   { "branch if ==", F_BRANCH_WHEN_EQ },   { "branch if !=", F_BRANCH_WHEN_NE }, + { "sizeof", F_SIZEOF }, + { "sizeof local", F_SIZEOF_LOCAL }, + { "throw(0)", F_THROW_ZERO },   };      struct instr instrs[F_MAX_INSTR - F_OFFSET];
1540:    case '|': tmp="`|"; break;    case '^': tmp="`^"; break;    case '~': tmp="`~"; break; +  case '[': +  if(GOBBLE(']')) +  { +  tmp="`[]"; +  if(GOBBLE('=')) tmp="`[]="; +  break; +  }       default:    yyerror("Illegal ` identifier.");