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 |
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 |