| OLD | NEW |
| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 PUSH_TOKEN(Token::LT); | 72 PUSH_TOKEN(Token::LT); |
| 73 }|> | 73 }|> |
| 74 | 74 |
| 75 "<!" <|{ | 75 "<!" <|{ |
| 76 BACKWARD(1); | 76 BACKWARD(1); |
| 77 PUSH_TOKEN(Token::LT); | 77 PUSH_TOKEN(Token::LT); |
| 78 }|> | 78 }|> |
| 79 | 79 |
| 80 | 80 |
| 81 "-->" <{ | 81 "-->" <{ |
| 82 if (!just_seen_line_terminator_) { | 82 if (!has_line_terminator_before_next_) { |
| 83 BACKWARD(1); | 83 BACKWARD(1); |
| 84 PUSH_TOKEN(Token::DEC); | 84 PUSH_TOKEN(Token::DEC); |
| 85 } | 85 } |
| 86 }||SingleLineComment> | 86 }||SingleLineComment> |
| 87 | 87 |
| 88 ">>>=" <|push_token(ASSIGN_SHR)|> | 88 ">>>=" <|push_token(ASSIGN_SHR)|> |
| 89 ">>>" <|push_token(SHR)|> | 89 ">>>" <|push_token(SHR)|> |
| 90 "<<=" <|push_token(ASSIGN_SHL)|> | 90 "<<=" <|push_token(ASSIGN_SHL)|> |
| 91 ">>=" <|push_token(ASSIGN_SAR)|> | 91 ">>=" <|push_token(ASSIGN_SAR)|> |
| 92 "<=" <|push_token(LTE)|> | 92 "<=" <|push_token(LTE)|> |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 eos <|skip_and_terminate|> | 230 eos <|skip_and_terminate|> |
| 231 catch_all <||continue> | 231 catch_all <||continue> |
| 232 | 232 |
| 233 <<MultiLineComment>> | 233 <<MultiLineComment>> |
| 234 /\*+\// <|skip|> | 234 /\*+\// <|skip|> |
| 235 # TODO find a way to generate the below rule | 235 # TODO find a way to generate the below rule |
| 236 /\*+[^\/*]/ <||continue> | 236 /\*+[^\/*]/ <||continue> |
| 237 line_terminator <push_line_terminator||continue> | 237 line_terminator <push_line_terminator||continue> |
| 238 eos <|terminate_illegal|> | 238 eos <|terminate_illegal|> |
| 239 catch_all <||continue> | 239 catch_all <||continue> |
| OLD | NEW |