bc: formatting changes, added a FIXME comment, no logic changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
54f5c1d600
commit
f11b5b9864
@ -643,11 +643,13 @@ dc_char_to_LEX[] ALIGN1 = {
|
|||||||
// IJKLMNOP
|
// IJKLMNOP
|
||||||
DC_LEX_IBASE, XC_LEX_INVALID, DC_LEX_SCALE, DC_LEX_LOAD_POP,
|
DC_LEX_IBASE, XC_LEX_INVALID, DC_LEX_SCALE, DC_LEX_LOAD_POP,
|
||||||
XC_LEX_INVALID, DC_LEX_OP_BOOL_NOT, DC_LEX_OBASE, DC_LEX_PRINT_STREAM,
|
XC_LEX_INVALID, DC_LEX_OP_BOOL_NOT, DC_LEX_OBASE, DC_LEX_PRINT_STREAM,
|
||||||
// QRSTUVWXY
|
// QRSTUVWX
|
||||||
DC_LEX_NQUIT, DC_LEX_POP, DC_LEX_STORE_PUSH, XC_LEX_INVALID, XC_LEX_INVALID,
|
DC_LEX_NQUIT, DC_LEX_POP, DC_LEX_STORE_PUSH, XC_LEX_INVALID,
|
||||||
XC_LEX_INVALID, XC_LEX_INVALID, DC_LEX_SCALE_FACTOR, XC_LEX_INVALID,
|
XC_LEX_INVALID, XC_LEX_INVALID, XC_LEX_INVALID, DC_LEX_SCALE_FACTOR,
|
||||||
// Z[\]
|
// YZ
|
||||||
DC_LEX_LENGTH, XC_LEX_INVALID, XC_LEX_INVALID, XC_LEX_INVALID,
|
XC_LEX_INVALID, DC_LEX_LENGTH,
|
||||||
|
// [\]
|
||||||
|
XC_LEX_INVALID, XC_LEX_INVALID, XC_LEX_INVALID,
|
||||||
// ^_`
|
// ^_`
|
||||||
XC_LEX_OP_POWER, XC_LEX_NEG, XC_LEX_INVALID,
|
XC_LEX_OP_POWER, XC_LEX_NEG, XC_LEX_INVALID,
|
||||||
// abcdefgh
|
// abcdefgh
|
||||||
@ -4574,6 +4576,7 @@ static BC_STATUS zbc_parse_stmt_possibly_auto(bool auto_allowed)
|
|||||||
}
|
}
|
||||||
while (p->lex != BC_LEX_RBRACE) {
|
while (p->lex != BC_LEX_RBRACE) {
|
||||||
dbg_lex("%s:%d block parsing loop", __func__, __LINE__);
|
dbg_lex("%s:%d block parsing loop", __func__, __LINE__);
|
||||||
|
//FIXME: prevent wrong syntax such as "{ print 1 print 2 }"
|
||||||
s = zbc_parse_stmt();
|
s = zbc_parse_stmt();
|
||||||
if (s) RETURN_STATUS(s);
|
if (s) RETURN_STATUS(s);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user