Denys Vlasenko
|
ecb62edd47
bc: fold struct BcLex into BcParse
|
6 years ago |
Denys Vlasenko
|
6e6182342e
bc: move BcLex::lex member to be the first in struct globals
|
6 years ago |
Denys Vlasenko
|
0b0e8d0509
bc: rename some members and macros, no code changes
|
6 years ago |
Denys Vlasenko
|
3f8752c33f
bc: shorten error messages
|
6 years ago |
Gavin Howard
|
fa495ce498
bc: make it clear that the code is adapted
|
6 years ago |
Denys Vlasenko
|
8fac1c7740
dc: add two tests
|
6 years ago |
Denys Vlasenko
|
a2e62e3e50
bc: stop passing a pointer to G.prs down the call chain
|
6 years ago |
Denys Vlasenko
|
1fbe35a7d8
bc: make zbc_program_read() and zdc_program_execStr() use G.prs
|
6 years ago |
Denys Vlasenko
|
53e569c06b
bc: fix interactive read()
|
6 years ago |
Denys Vlasenko
|
2638454464
bc: add code to detect errors like "print 1 print 2"
|
6 years ago |
Denys Vlasenko
|
5fa74b9efc
bc: allow {break} and {continue} (allow RBRACE to terminate them)
|
6 years ago |
Denys Vlasenko
|
d4b721cc8b
bc: shrink parsing code a bit more, disallow "auto a b c" (without commas)
|
6 years ago |
Denys Vlasenko
|
73b3ebc0e1
bc: simplify bc_parse_expr_empty_ok()
|
6 years ago |
Denys Vlasenko
|
d0238d83f0
bc: simplify bc_parse_expr_empty_ok()
|
6 years ago |
Denys Vlasenko
|
bb116031a0
bc: simplify bc_parse_expr_empty_ok()
|
6 years ago |
Denys Vlasenko
|
d897c9aca6
bc: BC_RESULT_ONE is bc-specific
|
6 years ago |
Denys Vlasenko
|
0c45bb22a0
bc: partially deinline BC_PARSE_LEAF() macro
|
6 years ago |
Denys Vlasenko
|
a17d95d0d0
bc: rename lexer variables, use smallints where appropriate
|
6 years ago |
Denys Vlasenko
|
d279d809ac
bc: fix "bc -s" only warning on "define f()<newline>", not exiting
|
6 years ago |
Denys Vlasenko
|
79587cb442
bc: POSIX error/warn functions can be 'z' functions too
|
6 years ago |
Denys Vlasenko
|
65b6fe09c4
bc: remove unnecessary NULL initializers
|
6 years ago |
Denys Vlasenko
|
a5bf53e4bb
bc: move relational LEXs before math LEXs - shorten dc_LEX_to_INST[]
|
6 years ago |
Denys Vlasenko
|
4accb6bba8
bc: offset dc_LEX_to_INST[] start
|
6 years ago |
Denys Vlasenko
|
23ea0734e1
bc: rename BC_LEX_NLINE/WHITESPACE/STR/NAME/NUMBER to XC_LEX_
|
6 years ago |
Denys Vlasenko
|
9d9c97efbd
bc: separate many bc and dc LEX constants
|
6 years ago |
Denys Vlasenko
|
69560f42da
bc: rename several BC_LEX_OPs to XC_LEX_OPs.
|
6 years ago |
Denys Vlasenko
|
abf6cf6765
bc: move BC_LEX_OP_INC/DEC to the end of operation LEX constants
|
6 years ago |
Denys Vlasenko
|
7d9be0bc6d
bc: rename BC_LEXs to XC_LEXs for common constants, and to DC_LEXs for dc-specific
|
6 years ago |
Denys Vlasenko
|
2097ac8d9e
bc: move functions/macros around, no code changes
|
6 years ago |
Denys Vlasenko
|
a7732d1120
bc: rename common INST constants to XC_, dc-specific ones to DC_
|
6 years ago |