Lines Matching refs:lex
756 smallint lex; // was BcLexType // first member is most used member
2913 p->lex = XC_LEX_WHITESPACE; in xc_lex_lineComment()
2925 p->lex = XC_LEX_WHITESPACE; in xc_lex_whitespace()
2957 p->lex = XC_LEX_NUMBER; in zxc_lex_number()
2998 p->lex = XC_LEX_NAME; in xc_lex_name()
3036 p->lex_last = p->lex;
3047 p->lex = XC_LEX_EOF;
3061 } while (!s && p->lex == XC_LEX_WHITESPACE);
3062 dbg_lex("p->lex from string:%d", p->lex);
3071 if (G.prs.lex == XC_LEX_NLINE) in zbc_lex_skip_if_at_NLINE()
3108 p->lex = BC_LEX_KEY_1st_keyword + i; in zbc_lex_identifier()
3139 p->lex = XC_LEX_STR; in zbc_lex_string()
3171 p->lex = (with_and_without & 0xff); in parse_lex_by_checking_eq_sign()
3180 p->lex = XC_LEX_WHITESPACE; in zbc_lex_comment()
3227 p->lex = XC_LEX_NLINE; in zbc_lex_token()
3238 if (p->lex == BC_LEX_OP_BOOL_NOT) { in zbc_lex_token()
3260 p->lex = BC_LEX_OP_BOOL_AND; in zbc_lex_token()
3262 p->lex = XC_LEX_INVALID; in zbc_lex_token()
3268 p->lex = (BcLexType)(c - '(' + BC_LEX_LPAREN); in zbc_lex_token()
3277 p->lex = BC_LEX_OP_INC; in zbc_lex_token()
3282 p->lex = BC_LEX_COMMA; in zbc_lex_token()
3288 p->lex = BC_LEX_OP_DEC; in zbc_lex_token()
3296 p->lex = BC_LEX_KEY_LAST; in zbc_lex_token()
3346 p->lex = BC_LEX_SCOLON; in zbc_lex_token()
3359 p->lex = (BcLexType)(c - '[' + BC_LEX_LBRACKET); in zbc_lex_token()
3363 p->lex = XC_LEX_WHITESPACE; in zbc_lex_token()
3401 p->lex = (BcLexType)(c - '{' + BC_LEX_LBRACE); in zbc_lex_token()
3409 p->lex = BC_LEX_OP_BOOL_OR; in zbc_lex_token()
3411 p->lex = XC_LEX_INVALID; in zbc_lex_token()
3416 p->lex = XC_LEX_INVALID; in zbc_lex_token()
3438 p->lex = XC_LEX_NAME; in zdc_lex_register()
3450 p->lex = XC_LEX_STR; in zdc_lex_string()
3503 && (p->lex = dc_char_to_LEX[c - '%']) != XC_LEX_INVALID in zdc_lex_token()
3524 p->lex = XC_LEX_NLINE; in zdc_lex_token()
3536 p->lex = XC_LEX_OP_REL_NE; in zdc_lex_token()
3538 p->lex = XC_LEX_OP_REL_LE; in zdc_lex_token()
3540 p->lex = XC_LEX_OP_REL_GE; in zdc_lex_token()
3576 p->lex = XC_LEX_INVALID; in zdc_lex_token()
3698 G.prs.lex = G.prs.lex_last = XC_LEX_INVALID; in zxc_parse_text_init()
3732 p->lex = XC_LEX_EOF; in xc_parse_reset()
3829 if (p->lex == XC_LEX_NLINE) in zbc_parse_stmt_allow_NLINE_before()
3889 dbg_lex("%s:%d p->lex:%d", __func__, __LINE__, p->lex); in zbc_parse_params()
3896 if (p->lex != BC_LEX_RPAREN) { in zbc_parse_params()
3901 if (p->lex != BC_LEX_COMMA) { in zbc_parse_params()
3902 if (p->lex == BC_LEX_RPAREN) in zbc_parse_params()
3930 if (p->lex != BC_LEX_RPAREN) { in zbc_parse_call()
3964 if (p->lex == BC_LEX_LBRACKET) { in zbc_parse_name()
3968 if (p->lex == BC_LEX_RBRACKET) { in zbc_parse_name()
3985 } else if (p->lex == BC_LEX_LPAREN) { in zbc_parse_name()
4013 if (p->lex != BC_LEX_LPAREN) RETURN_STATUS(bc_error_bad_token()); in zbc_parse_read()
4017 if (p->lex != BC_LEX_RPAREN) RETURN_STATUS(bc_error_bad_token()); in zbc_parse_read()
4032 if (p->lex != BC_LEX_LPAREN) RETURN_STATUS(bc_error_bad_token()); in zbc_parse_builtin()
4042 if (p->lex != BC_LEX_RPAREN) RETURN_STATUS(bc_error_bad_token()); in zbc_parse_builtin()
4059 if (p->lex != BC_LEX_LPAREN) { in zbc_parse_scale()
4073 if (p->lex != BC_LEX_RPAREN) in zbc_parse_scale()
4093 *prev = inst = BC_INST_INC_POST + (p->lex != BC_LEX_OP_INC); in zbc_parse_incdec()
4097 *prev = inst = BC_INST_INC_PRE + (p->lex != BC_LEX_OP_INC); in zbc_parse_incdec()
4101 type = p->lex; in zbc_parse_incdec()
4120 if (p->lex == BC_LEX_LPAREN) in zbc_parse_incdec()
4180 type = p->lex; in zbc_parse_print()
4188 if (p->lex != BC_LEX_COMMA) in zbc_parse_print()
4206 t = p->lex; in zbc_parse_return()
4245 if (p->lex != BC_LEX_LPAREN) RETURN_STATUS(bc_error_bad_token()); in zbc_parse_if()
4251 if (p->lex != BC_LEX_RPAREN) RETURN_STATUS(bc_error_bad_token()); in zbc_parse_if()
4262 dbg_lex("%s:%d in if after stmt: p->lex:%d", __func__, __LINE__, p->lex); in zbc_parse_if()
4263 if (p->lex == BC_LEX_KEY_ELSE) { in zbc_parse_if()
4297 if (p->lex != BC_LEX_LPAREN) RETURN_STATUS(bc_error_bad_token()); in zbc_parse_while()
4310 if (p->lex != BC_LEX_RPAREN) RETURN_STATUS(bc_error_bad_token()); in zbc_parse_while()
4336 dbg_lex("%s:%d p->lex:%d", __func__, __LINE__, p->lex); in zbc_parse_for()
4339 if (p->lex != BC_LEX_LPAREN) RETURN_STATUS(bc_error_bad_token()); in zbc_parse_for()
4343 if (p->lex != BC_LEX_SCOLON) { in zbc_parse_for()
4352 if (p->lex != BC_LEX_SCOLON) RETURN_STATUS(bc_error_bad_token()); in zbc_parse_for()
4361 if (p->lex != BC_LEX_SCOLON) in zbc_parse_for()
4373 if (p->lex != BC_LEX_SCOLON) RETURN_STATUS(bc_error_bad_token()); in zbc_parse_for()
4384 if (p->lex != BC_LEX_RPAREN) { in zbc_parse_for()
4387 if (p->lex != BC_LEX_RPAREN) RETURN_STATUS(bc_error_bad_token()); in zbc_parse_for()
4468 if (p->lex != XC_LEX_NAME) in zbc_parse_funcdef()
4482 voidfunc = (voidfunc && p->lex == XC_LEX_NAME); in zbc_parse_funcdef()
4488 if (p->lex != BC_LEX_LPAREN) in zbc_parse_funcdef()
4499 while (p->lex != BC_LEX_RPAREN) { in zbc_parse_funcdef()
4502 if (p->lex == XC_LEX_OP_MULTIPLY) { in zbc_parse_funcdef()
4510 if (p->lex != XC_LEX_NAME) in zbc_parse_funcdef()
4519 if (p->lex == BC_LEX_LBRACKET) { in zbc_parse_funcdef()
4524 if (p->lex != BC_LEX_RBRACKET) { in zbc_parse_funcdef()
4537 comma = p->lex == BC_LEX_COMMA; in zbc_parse_funcdef()
4552 if (p->lex != BC_LEX_LBRACE) { in zbc_parse_funcdef()
4561 if (p->lex != BC_LEX_LBRACE) in zbc_parse_funcdef()
4597 if (p->lex != XC_LEX_NAME) in zbc_parse_auto()
4605 if (p->lex == BC_LEX_LBRACKET) { in zbc_parse_auto()
4610 if (p->lex != BC_LEX_RBRACKET) { in zbc_parse_auto()
4621 if (p->lex == XC_LEX_NLINE in zbc_parse_auto()
4622 || p->lex == BC_LEX_SCOLON in zbc_parse_auto()
4627 if (p->lex != BC_LEX_COMMA) in zbc_parse_auto()
4648 dbg_lex_enter("%s:%d entered, p->lex:%d", __func__, __LINE__, p->lex); in zbc_parse_stmt_possibly_auto()
4650 if (p->lex == XC_LEX_NLINE) { in zbc_parse_stmt_possibly_auto()
4654 if (p->lex == BC_LEX_SCOLON) { in zbc_parse_stmt_possibly_auto()
4659 if (p->lex == BC_LEX_LBRACE) { in zbc_parse_stmt_possibly_auto()
4664 } while (p->lex == XC_LEX_NLINE); in zbc_parse_stmt_possibly_auto()
4665 if (auto_allowed && p->lex == BC_LEX_KEY_AUTO) { in zbc_parse_stmt_possibly_auto()
4670 while (p->lex != BC_LEX_RBRACE) { in zbc_parse_stmt_possibly_auto()
4676 if (p->lex == BC_LEX_RBRACE) in zbc_parse_stmt_possibly_auto()
4678 if (p->lex != BC_LEX_SCOLON in zbc_parse_stmt_possibly_auto()
4679 && p->lex != XC_LEX_NLINE in zbc_parse_stmt_possibly_auto()
4691 dbg_lex("%s:%d p->lex:%d", __func__, __LINE__, p->lex); in zbc_parse_stmt_possibly_auto()
4692 switch (p->lex) { in zbc_parse_stmt_possibly_auto()
4715 s = zbc_parse_break_or_continue(p->lex); in zbc_parse_stmt_possibly_auto()
4777 if (p->lex == BC_LEX_KEY_DEFINE) { in zbc_parse_stmt_or_funcdef()
4781 dbg_lex("%s:%d p->lex:%d (not BC_LEX_KEY_DEFINE)", __func__, __LINE__, p->lex); in zbc_parse_stmt_or_funcdef()
4800 paren_first = (p->lex == BC_LEX_LPAREN); in zbc_parse_expr()
4808 BcLexType t = p->lex; in zbc_parse_expr()
5026 if (p->lex != XC_LEX_NAME) RETURN_STATUS(bc_error_bad_token()); in zdc_parse_register()
5092 if (p->lex == DC_LEX_ELSE) { in zdc_parse_cond()
5137 if (G.prs.lex != XC_LEX_NUMBER) in zdc_parse_token()
5187 if (p->lex == XC_LEX_NLINE) in zdc_parse_expr()
5190 i = (int)p->lex - (int)XC_LEX_OP_POWER; in zdc_parse_expr()
5198 RETURN_STATUS(zdc_parse_token(p->lex)); in zdc_parse_expr()
5205 dbg_lex_enter("%s:%d entered, p->lex:%d", __func__, __LINE__, p->lex); in zdc_parse_exprs_until_eof()
5206 while (p->lex != XC_LEX_EOF) { in zdc_parse_exprs_until_eof()
5494 if (G.prs.lex != XC_LEX_NLINE && G.prs.lex != XC_LEX_EOF) { in zxc_program_read()
6626 if (G.prs.lex != XC_LEX_EOF) in zdc_program_execStr()
6952 while (G.prs.lex != XC_LEX_EOF) { in zxc_vm_process()
6956 dbg_lex("%s:%d G.prs.lex:%d, parsing...", __func__, __LINE__, G.prs.lex); in zxc_vm_process()
6964 if (G.prs.lex != BC_LEX_SCOLON in zxc_vm_process()
6965 && G.prs.lex != XC_LEX_NLINE in zxc_vm_process()
6966 && G.prs.lex != XC_LEX_EOF in zxc_vm_process()