pike.git / src / lex.c

version» Context lines:

pike.git/src/lex.c:1:   /*\   ||| This file a part of Pike, and is copyright by Fredrik Hubinette   ||| Pike is distributed as GPL (General Public License)   ||| See the files COPYING and DISCLAIMER for more information.   \*/   /**/   #include "global.h" - RCSID("$Id: lex.c,v 1.92 2001/07/06 14:07:55 grubba Exp $"); + RCSID("$Id: lex.c,v 1.93 2001/07/06 22:56:57 grubba Exp $");   #include "language.h"   #include "array.h"   #include "lex.h"   #include "stralloc.h"   #include "dynamic_buffer.h"   #include "constants.h"   #include "hashtable.h"   #include "stuff.h"   #include "pike_memory.h"   #include "interpret.h"
pike.git/src/lex.c:159:   #define OPCODE1_TAILJUMP(OP,DESC) { DESC, OP, I_HASARG },   #define OPCODE2_TAILJUMP(OP,DESC) { DESC, OP, I_TWO_ARGS },      #define LEXER      struct keyword instr_names[]=   {   #ifndef PIKE_PRECOMPILER   #include "interpret_protos.h"   #endif /* !PIKE_PRECOMPILER */ - { "!=", F_NE,0 }, +    { "%=", F_MOD_EQ,0 },   { "&=", F_AND_EQ,0 },   { "|=", F_OR_EQ,0 },   { "*=", F_MULT_EQ,0 },   { "+=", F_ADD_EQ,0 },   { "-=", F_SUB_EQ,0 },   { "/=", F_DIV_EQ,0 }, - { "<", F_LT,0 }, +    { "<<=", F_LSH_EQ,0 }, - { "<=", F_LE,0 }, - { "==", F_EQ,0 }, - { ">", F_GT,0 }, - { ">=", F_GE,0 }, +    { ">>=", F_RSH_EQ,0 },   { "^=", F_XOR_EQ,0 },   { "arg+=1024", F_PREFIX_1024,0 },   { "arg+=256", F_PREFIX_256,0 },   { "arg+=256*X", F_PREFIX_CHARX256,0 },   { "arg+=256*XX", F_PREFIX_WORDX256,0 },   { "arg+=256*XXX", F_PREFIX_24BITX256,0 },   { "arg+=512", F_PREFIX_512,0 },   { "arg+=768", F_PREFIX_768,0 },   
pike.git/src/lex.c:200:      { "break", F_BREAK,0 },   { "case", F_CASE,0 },   { "continue", F_CONTINUE,0 },   { "default", F_DEFAULT,0 },   { "do-while", F_DO,0 },   { "dumb return", F_DUMB_RETURN,0 },   { "for", F_FOR,0 },   { "index", F_INDEX,0 },    - { "branch if <", F_BRANCH_WHEN_LT, I_ISJUMP }, - { "branch if >", F_BRANCH_WHEN_GT, I_ISJUMP }, - { "branch if <=", F_BRANCH_WHEN_LE, I_ISJUMP }, - { "branch if >=", F_BRANCH_WHEN_GE, I_ISJUMP }, - { "branch if ==", F_BRANCH_WHEN_EQ, I_ISJUMP }, - { "branch if !=", F_BRANCH_WHEN_NE, I_ISJUMP }, - { "++Loop", F_INC_LOOP, I_ISJUMP }, - { "++Loop!=", F_INC_NEQ_LOOP, I_ISJUMP }, - { "--Loop", F_DEC_LOOP, I_ISJUMP }, - { "--Loop!=", F_DEC_NEQ_LOOP, I_ISJUMP }, +    { "foreach", F_FOREACH, I_ISJUMP },   { "foreach++", F_NEW_FOREACH, I_ISJUMP },   { "pointer", F_POINTER, I_ISPOINTER },   { "data", F_DATA, I_DATA },   { "byte", F_BYTE, I_DATA },      { "lvalue_list", F_LVALUE_LIST,0 },   { "return", F_RETURN,0 },   { "return 0", F_RETURN_0,0 },   { "return 1", F_RETURN_1,0 },