Reviewers: ulan,
Message:
Committed patchset #1 manually as r17458.
Description:
Experimental parser: kill unnecessary rules.
[email protected]
BUG=
Committed: https://code.google.com/p/v8/source/detail?r=17458
Please review this at https://codereview.chromium.org/50983003/
SVN Base: https://v8.googlecode.com/svn/branches/experimental/parser
Affected files (+0, -7 lines):
M src/lexer/lexer.re
Index: src/lexer/lexer.re
diff --git a/src/lexer/lexer.re b/src/lexer/lexer.re
index
796a10c4e5223b77d76780990868b7863fe98a91..e1ad0c029c5fd6a1b75cc96d546fea3159c6e6d9
100644
--- a/src/lexer/lexer.re
+++ b/src/lexer/lexer.re
@@ -324,7 +324,6 @@ start_:
<Normal> ">" { PUSH_TOKEN(Token::GT); }
<Normal> number not_identifier_char {
PUSH_TOKEN_LOOKAHEAD(Token::NUMBER); }
- <Normal> number "\\u" [0-9a-fA-F]{4} { cursor_ -= 6;
send(Token::ILLEGAL); start_ = cursor_; cursor_ += 6; if
(ValidIdentifierStart()) { YYSETCONDITION(kConditionIdentifier); goto
yyc_Identifier; } else { PUSH_TOKEN(Token::ILLEGAL); } }
<Normal> number any { PUSH_TOKEN_LOOKAHEAD(Token::ILLEGAL); }
<Normal> "(" { PUSH_TOKEN(Token::LPAREN); }
@@ -392,12 +391,6 @@ start_:
<Identifier> "\\" { PUSH_TOKEN(Token::ILLEGAL); }
<Identifier> any {
PUSH_TOKEN_LOOKAHEAD(Token::IDENTIFIER); }
- <IdentifierIllegal> identifier_start {
PUSH_TOKEN_LOOKAHEAD(Token::ILLEGAL); }
- <IdentifierIllegal> identifier_char\identifier_start { marker_ =
cursor_; goto yyc_IdentifierIllegal; }
- <IdentifierIllegal> "\\u" [0-9a-fA-F]{4} { if (ValidIdentifierStart())
{ cursor_ -= 6; PUSH_TOKEN(Token::ILLEGAL); } marker_ = cursor_;
PUSH_TOKEN(Token::ILLEGAL); }
- <IdentifierIllegal> "\\"+ { marker_ = cursor_; goto
yyc_IdentifierIllegal; }
- <IdentifierIllegal> any {
PUSH_TOKEN_LOOKAHEAD(Token::ILLEGAL); }
-
<SingleLineComment> line_terminator { PUSH_LINE_TERMINATOR();}
<SingleLineComment> eof { start_ = cursor_ - 1;
PUSH_TOKEN(Token::EOS); }
<SingleLineComment> any { goto yyc_SingleLineComment; }
--
--
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.