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 |
Denys Vlasenko
|
81293c8af0
dc: without -x, do not parse extended regs: 's p' means: store to ' ' reg, print
|
6 years ago |
Denys Vlasenko
|
73b2c60825
bc: fix incorrect bit in BC_PARSE_EXPRS_BITS: 'limits' is not allowed
|
6 years ago |
Denys Vlasenko
|
ad0bd381e9
bc: for "dc only" remove handling of LAST, move OBASE enums up to IBASE
|
6 years ago |
Denys Vlasenko
|
9471bd4660
bc: fix empty lines in dc generating "bad token" message
|
6 years ago |
Denys Vlasenko
|
01eb5e9da1
bc: shrink modular exponentiation code
|
6 years ago |
Denys Vlasenko
|
1acac7f9c5
bc: do not yet allow 2^2.1
|
6 years ago |
Denys Vlasenko
|
a9f59db809
bc: avoid having to twiddle b->neg in zbc_num_p()
|
6 years ago |
Denys Vlasenko
|
2ea8ddf8c2
bc: do not disallow powers to N.0000 degree - it's even shorter code
|
6 years ago |
Denys Vlasenko
|
1557b76edd
bc: shrink zbc_num_ulong()
|
6 years ago |
Denys Vlasenko
|
ec74a9c145
bc: make long-running dc drop data it does not need (when it can)
|
6 years ago |
Denys Vlasenko
|
5cf0b2d466
bc: unbreak "z function" macro machinery
|
6 years ago |
Denys Vlasenko
|
badf683b0a
dc: unbreak interactive mode - was trying to get next tokens instead of executing
|
6 years ago |
Denys Vlasenko
|
5daa1a0adf
bc: move zbc_lex_next() out of zdc_parse_string() and zdc_parse_mem()
|
6 years ago |
Denys Vlasenko
|
7c1c9dc86b
bc: shorten sanity-check code
|
6 years ago |
Denys Vlasenko
|
88fcd5cc6c
bc: fold single-callsite functions into callers, commonalize code
|
6 years ago |
Denys Vlasenko
|
514967df5e
bc: zcommon_parse_expr() has only one user, fold it in
|
6 years ago |