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

Side by Side Diff: src/lexer/lexer.h

Issue 50843002: Experimental parser: make the baseline lex utf8, utf16, ascii and latin1. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Created 7 years, 1 month 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 | src/lexer/lexer-shell.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Portions of this code based on re2c: 1 // Portions of this code based on re2c:
2 // (re2c/examples/push.re) 2 // (re2c/examples/push.re)
3 // Copyright 2013 the V8 project authors. All rights reserved. 3 // Copyright 2013 the V8 project authors. All rights reserved.
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // * Redistributions of source code must retain the above copyright 8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer. 9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above 10 // * Redistributions in binary form must reproduce the above
(...skipping 12 matching lines...) Expand all
23 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 29
30 #ifndef V8_LEXER_LEXER_H 30 #ifndef V8_LEXER_LEXER_H
31 #define V8_LEXER_LEXER_H 31 #define V8_LEXER_LEXER_H
32 32
33 #if defined(WIN32) // FIXME: does this work?
34
35 typedef signed char int8_t;
36 typedef signed short int16_t;
37 typedef signed int int32_t;
38
39 typedef unsigned char uint8_t;
40 typedef unsigned short uint16_t;
41 typedef unsigned int uint32_t;
42
43 #else
44
45 #include <stdint.h>
46 #include <unistd.h>
47
48 #endif // defined(WIN32)
49
50 #include "token.h" 33 #include "token.h"
51 #include "flags.h" 34 #include "flags.h"
35 #include "v8stdint.h"
52 36
53 #define YYCTYPE uint8_t 37 #define YYCTYPE uint8_t
54 38
55 namespace v8 { 39 namespace v8 {
56 namespace internal { 40 namespace internal {
57 41
58 class ExperimentalScanner; 42 class ExperimentalScanner;
59 class UnicodeCache; 43 class UnicodeCache;
60 44
61 class PushScanner { 45 class PushScanner {
(...skipping 29 matching lines...) Expand all
91 uint32_t yyaccept; 75 uint32_t yyaccept;
92 76
93 bool just_seen_line_terminator_; 77 bool just_seen_line_terminator_;
94 78
95 ExperimentalScanner* sink_; 79 ExperimentalScanner* sink_;
96 }; 80 };
97 81
98 } } 82 } }
99 83
100 #endif // V8_LEXER_LEXER_H 84 #endif // V8_LEXER_LEXER_H
OLDNEW
« no previous file with comments | « no previous file | src/lexer/lexer-shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698