refactor incomplete data parsing

This commit is contained in:
Yuichi Nishiwaki 2013-10-27 02:06:59 +09:00
parent 51253c00b9
commit 870320f3a1
1 changed files with 12 additions and 8 deletions

View File

@ -113,22 +113,26 @@ abbrev
;
incomplete_datum
: /* none */
| tLPAREN incomplete_data
: tLPAREN incomplete_data
| incomplete_abbrev
;
incomplete_tail
: /* none */
| incomplete_datum
;
incomplete_data
: incomplete_datum
| datum tDOT incomplete_datum
: incomplete_tail
| datum tDOT incomplete_tail
| datum incomplete_data
;
incomplete_abbrev
: tQUOTE incomplete_datum
| tQUASIQUOTE incomplete_datum
| tUNQUOTE incomplete_datum
| tUNQUOTE_SPLICING incomplete_datum
: tQUOTE incomplete_tail
| tQUASIQUOTE incomplete_tail
| tUNQUOTE incomplete_tail
| tUNQUOTE_SPLICING incomplete_tail
;
%%