|
From: | Matthias Simon |
Subject: | Re: How to implement optional semicolon rules |
Date: | Wed, 19 Nov 2014 00:53:07 +0100 |
User-agent: | Roundcube Webmail/0.7.1 |
Block : '{' Statements '}' ; Statements : Statement Semicolon | Statements Statement Semicolon ; Semicolon : { driver.expect_semicolon = 1; } ';' ;If expect_semicolon is set and the lexer reads a '}', it then will unput this character and return a ';' instead. My problem is, expect_semicolon is set _after_ the next is already read and the ';'-injection is too late. What am I missing?
[Prev in Thread] | Current Thread | [Next in Thread] |