diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2012-02-26 03:01:10 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2012-02-26 03:01:10 -0800 |
commit | 7649d799041454321809da89a5716afc19c34f3d (patch) | |
tree | a3d1e0c24558c9c5e7842bc14327a1fe88afc5a6 /tests/008/empty-clauses.expected | |
parent | cdd51a57490deb19a0bd3d1b77d2e2aac4d6316b (diff) | |
download | txr-7649d799041454321809da89a5716afc19c34f3d.tar.gz txr-7649d799041454321809da89a5716afc19c34f3d.tar.bz2 txr-7649d799041454321809da89a5716afc19c34f3d.zip |
Bug #35625
* parser.l (BSCHR, BSYM, BTOK): New lexical definitions.
(BRACED): New state.
(grammar): Refactored so that braced variables are now handled
in the BRACED state, allowing for lexical differences between
braced variables and Lisp. This allows us to have
the /regex/ syntax in braces, but /regex/ is just a symbol
in the Lisp. The new #/ token is recognized and returned
as HASH_SLASH. All rules reformatted to a more easily
maintainble convention.
* parser.y (HASH_SLASH): New token.
(modifiers, lisp_regex): New nonterminals.
(var): Grammar changed to use modifiers nonterminal instead of exprs.
(var_op): Rule moved closer to var.
(expr): Produces lisp_regex rather than regex.
(yybadtoken): Handle HASH_SLASH in the switch statement.
Bugfix: HASH_BACKSLASH was not handled.
* txr.1: Documented #/regex/ syntax.
Diffstat (limited to 'tests/008/empty-clauses.expected')
0 files changed, 0 insertions, 0 deletions