Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: src/lexer/lexer_py.re

Issue 171713005: Experimental parser: add backtracking (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | tools/gyp/v8.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2013 the V8 project authors. All rights reserved. 1 # Copyright 2013 the V8 project authors. All rights reserved.
2 # Redistribution and use in source and binary forms, with or without 2 # Redistribution and use in source and binary forms, with or without
3 # modification, are permitted provided that the following conditions are 3 # modification, are permitted provided that the following conditions are
4 # met: 4 # met:
5 # 5 #
6 # * Redistributions of source code must retain the above copyright 6 # * Redistributions of source code must retain the above copyright
7 # notice, this list of conditions and the following disclaimer. 7 # notice, this list of conditions and the following disclaimer.
8 # * Redistributions in binary form must reproduce the above 8 # * Redistributions in binary form must reproduce the above
9 # copyright notice, this list of conditions and the following 9 # copyright notice, this list of conditions and the following
10 # disclaimer in the documentation and/or other materials provided 10 # disclaimer in the documentation and/or other materials provided
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 "==" <|token(EQ)|> 83 "==" <|token(EQ)|>
84 "=" <|token(ASSIGN)|> 84 "=" <|token(ASSIGN)|>
85 "!==" <|token(NE_STRICT)|> 85 "!==" <|token(NE_STRICT)|>
86 "!=" <|token(NE)|> 86 "!=" <|token(NE)|>
87 "!" <|token(NOT)|> 87 "!" <|token(NOT)|>
88 88
89 "//" <||SingleLineComment> 89 "//" <||SingleLineComment>
90 "/*" <set_marker(2)||MultiLineComment> 90 "/*" <set_marker(2)||MultiLineComment>
91 "<!--" <||SingleLineComment> 91 "<!--" <||SingleLineComment>
92 92
93 "<!-" <|backtrack(2, LT)|>
94 "<!" <|backtrack(1, LT)|>
95 "-->" <if_line_terminator_backtrack(1, DEC)||SingleLineComment> 93 "-->" <if_line_terminator_backtrack(1, DEC)||SingleLineComment>
96 94
97 ">>>=" <|token(ASSIGN_SHR)|> 95 ">>>=" <|token(ASSIGN_SHR)|>
98 ">>>" <|token(SHR)|> 96 ">>>" <|token(SHR)|>
99 "<<=" <|token(ASSIGN_SHL)|> 97 "<<=" <|token(ASSIGN_SHL)|>
100 ">>=" <|token(ASSIGN_SAR)|> 98 ">>=" <|token(ASSIGN_SAR)|>
101 "<=" <|token(LTE)|> 99 "<=" <|token(LTE)|>
102 ">=" <|token(GTE)|> 100 ">=" <|token(GTE)|>
103 "<<" <|token(SHL)|> 101 "<<" <|token(SHL)|>
104 ">>" <|token(SAR)|> 102 ">>" <|token(SAR)|>
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 catch_all <||continue> 230 catch_all <||continue>
233 eos <skip_and_terminate> 231 eos <skip_and_terminate>
234 232
235 <<MultiLineComment>> 233 <<MultiLineComment>>
236 /\*+\// <|skip|> 234 /\*+\// <|skip|>
237 # TODO(dcarney): find a way to generate the below rule 235 # TODO(dcarney): find a way to generate the below rule
238 /\*+[^\/*]/ <||continue> 236 /\*+[^\/*]/ <||continue>
239 line_terminator <line_terminator_in_multiline_comment||continue> 237 line_terminator <line_terminator_in_multiline_comment||continue>
240 catch_all <||continue> 238 catch_all <||continue>
241 eos <terminate_illegal> 239 eos <terminate_illegal>
OLDNEW
« no previous file with comments | « no previous file | tools/gyp/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698