Revision: 17400
Author: [email protected]
Date: Fri Oct 25 14:18:36 2013 UTC
Log: Experimental scanner: number and whitespace fixes.
Failures down to 6.
BUG=
[email protected]
Review URL: https://codereview.chromium.org/44403002
http://code.google.com/p/v8/source/detail?r=17400
Modified:
/branches/experimental/parser/src/lexer/lexer.re
=======================================
--- /branches/experimental/parser/src/lexer/lexer.re Fri Oct 25 11:59:14
2013 UTC
+++ /branches/experimental/parser/src/lexer/lexer.re Fri Oct 25 14:18:36
2013 UTC
@@ -266,7 +266,7 @@
digit = [0-9];
hex_digit = [0-9a-fA-F];
maybe_exponent = ('e' [-+]? digit+)?;
- number = ('0x' hex_digit+) | ("." digit+ maybe_exponent) | (digit+
("." digit+)? maybe_exponent);
+ number = ('0x' hex_digit+) | ("." digit+ maybe_exponent) | (digit+
("." digit*)? maybe_exponent);
<Normal> "break" not_identifier_char {
PUSH_TOKEN_LOOKAHEAD(Token::BREAK); }
<Normal> "case" not_identifier_char {
PUSH_TOKEN_LOOKAHEAD(Token::CASE); }
@@ -331,7 +331,7 @@
<Normal> "!" { PUSH_TOKEN(Token::NOT); }
<Normal> "//" :=> SingleLineComment
- <Normal> whitespace? "-->" { if (just_seen_line_terminator_) {
YYSETCONDITION(kConditionSingleLineComment); goto yy0; } else { --cursor_;
send(Token::DEC); start_ = cursor_; goto yy0; } }
+ <Normal> whitespace* "-->" { if (just_seen_line_terminator_) {
YYSETCONDITION(kConditionSingleLineComment); goto yy0; } else { --cursor_;
send(Token::DEC); start_ = cursor_; goto yy0; } }
<Normal> "/*" :=> MultiLineComment
<Normal> "<!--" :=> HtmlComment
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.