Mercurial > hg > index.cgi
diff lwlib/lw_expr.h @ 399:6153cb49403c
Initial commit of pragma newsource
pragma newsource enables a source code variant as follows:
1. no line numbers
2. no implied comments at the end of lines
3. all comments must be introduced by a comment character
4. spaces are allowed in operands
(4) is not quite complete. This commit handles "operandless" instructions
(anything where the parser calls skip_operand()) and expression parsing.
author | William Astle <lost@l-w.ca> |
---|---|
date | Tue, 13 Oct 2015 23:38:02 -0600 |
parents | 4c5d3b990a3f |
children |
line wrap: on
line diff
--- a/lwlib/lw_expr.h Sun Oct 11 09:31:06 2015 -0600 +++ b/lwlib/lw_expr.h Tue Oct 13 23:38:02 2015 -0600 @@ -90,6 +90,7 @@ void lw_expr_set_term_parser(lw_expr_fn3_t *fn); lw_expr_t lw_expr_parse(char **p, void *priv); +lw_expr_t lw_expr_parse_compact(char **p, void *priv); int lw_expr_istype(lw_expr_t e, int t); int lw_expr_intval(lw_expr_t e); int lw_expr_specint(lw_expr_t e);