| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 bool ParseIntervalQuantifier(int* min_out, int* max_out); | 314 bool ParseIntervalQuantifier(int* min_out, int* max_out); |
| 315 | 315 |
| 316 // Parses and returns a single escaped character. The character | 316 // Parses and returns a single escaped character. The character |
| 317 // must not be 'b' or 'B' since they are usually handle specially. | 317 // must not be 'b' or 'B' since they are usually handle specially. |
| 318 uc32 ParseClassCharacterEscape(); | 318 uc32 ParseClassCharacterEscape(); |
| 319 | 319 |
| 320 // Checks whether the following is a length-digit hexadecimal number, | 320 // Checks whether the following is a length-digit hexadecimal number, |
| 321 // and sets the value if it is. | 321 // and sets the value if it is. |
| 322 bool ParseHexEscape(int length, uc32* value); | 322 bool ParseHexEscape(int length, uc32* value); |
| 323 | 323 |
| 324 uc32 ParseControlLetterEscape(); | |
| 325 uc32 ParseOctalLiteral(); | 324 uc32 ParseOctalLiteral(); |
| 326 | 325 |
| 327 // Tries to parse the input as a back reference. If successful it | 326 // Tries to parse the input as a back reference. If successful it |
| 328 // stores the result in the output parameter and returns true. If | 327 // stores the result in the output parameter and returns true. If |
| 329 // it fails it will push back the characters read so the same characters | 328 // it fails it will push back the characters read so the same characters |
| 330 // can be reparsed. | 329 // can be reparsed. |
| 331 bool ParseBackReferenceIndex(int* index_out); | 330 bool ParseBackReferenceIndex(int* index_out); |
| 332 | 331 |
| 333 CharacterRange ParseClassAtom(uc16* char_class); | 332 CharacterRange ParseClassAtom(uc16* char_class); |
| 334 RegExpTree* ReportError(Vector<const char> message); | 333 RegExpTree* ReportError(Vector<const char> message); |
| (...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 767 Handle<Object> ReportUnexpectedToken() { return Handle<Object>::null(); } | 766 Handle<Object> ReportUnexpectedToken() { return Handle<Object>::null(); } |
| 768 // Converts the currently parsed literal to a JavaScript String. | 767 // Converts the currently parsed literal to a JavaScript String. |
| 769 Handle<String> GetString(); | 768 Handle<String> GetString(); |
| 770 | 769 |
| 771 JsonScanner scanner_; | 770 JsonScanner scanner_; |
| 772 bool stack_overflow_; | 771 bool stack_overflow_; |
| 773 }; | 772 }; |
| 774 } } // namespace v8::internal | 773 } } // namespace v8::internal |
| 775 | 774 |
| 776 #endif // V8_PARSER_H_ | 775 #endif // V8_PARSER_H_ |
| OLD | NEW |