Denys Vlasenko
|
10bde14292
bc: rename functions common to bc and dc as xc_FOO()
|
6 years ago |
Denys Vlasenko
|
db8d607514
bc: G.prog.zero does not need initializing num[] vector
|
6 years ago |
Denys Vlasenko
|
2beb1f6faf
bc: use ALIGN1 where appropriate
|
6 years ago |
Denys Vlasenko
|
8af11087b2
bc: undo debugging change, add a small optimization
|
6 years ago |
Denys Vlasenko
|
ab9a98602f
bc: simple speedups
|
6 years ago |
Denys Vlasenko
|
f706a18f33
bc: use '\0' insteads of 0xff (BC_PARSE_STREND) as name terminator
|
6 years ago |
Denys Vlasenko
|
1c69ec1597
bc: reduce indentation, no code changes
|
6 years ago |
Denys Vlasenko
|
8a56e3643f
bc: fix "bc only" build
|
6 years ago |
Denys Vlasenko
|
1e87b97da6
bc: fix "dc only" build
|
6 years ago |
Denys Vlasenko
|
2f7352b4f5
bc: comment out code which appears to be never reached
|
6 years ago |
Denys Vlasenko
|
b1b7996a2a
bc: remove all logic for multi-line buffering
|
6 years ago |
Denys Vlasenko
|
7d32e25bf3
bc: prepare for char-by-char input handling
|
6 years ago |
Denys Vlasenko
|
63ad799384
bc: fix handling of comment/string interactions while buffering input
|
6 years ago |
Denys Vlasenko
|
94576d2b97
bc: fix interactive handling of comments in strings and quotes in comments
|
6 years ago |
Denys Vlasenko
|
c192b0442b
bc: simplify input pointer manipulation while lexing
|
6 years ago |
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
|
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 |