OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef XFA_SRC_FXFA_FM2JS_XFA_LEXER_H_ | 7 #ifndef XFA_FXFA_FM2JS_XFA_LEXER_H_ |
8 #define XFA_SRC_FXFA_FM2JS_XFA_LEXER_H_ | 8 #define XFA_FXFA_FM2JS_XFA_LEXER_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 | 11 |
12 #include "core/include/fxcrt/fx_string.h" | 12 #include "core/include/fxcrt/fx_string.h" |
13 #include "xfa/src/fxfa/fm2js/xfa_error.h" | 13 #include "xfa/fxfa/fm2js/xfa_error.h" |
14 | 14 |
15 enum XFA_FM_TOKEN { | 15 enum XFA_FM_TOKEN { |
16 TOKand, | 16 TOKand, |
17 TOKlparen, | 17 TOKlparen, |
18 TOKrparen, | 18 TOKrparen, |
19 TOKmul, | 19 TOKmul, |
20 TOKplus, | 20 TOKplus, |
21 TOKcomma, | 21 TOKcomma, |
22 TOKminus, | 22 TOKminus, |
23 TOKdot, | 23 TOKdot, |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 | 124 |
125 protected: | 125 protected: |
126 CXFA_FMToken* Scan(); | 126 CXFA_FMToken* Scan(); |
127 | 127 |
128 const FX_WCHAR* m_ptr; | 128 const FX_WCHAR* m_ptr; |
129 FX_DWORD m_uCurrentLine; | 129 FX_DWORD m_uCurrentLine; |
130 std::unique_ptr<CXFA_FMToken> m_pToken; | 130 std::unique_ptr<CXFA_FMToken> m_pToken; |
131 CXFA_FMErrorInfo* m_pErrorInfo; | 131 CXFA_FMErrorInfo* m_pErrorInfo; |
132 }; | 132 }; |
133 | 133 |
134 #endif // XFA_SRC_FXFA_FM2JS_XFA_LEXER_H_ | 134 #endif // XFA_FXFA_FM2JS_XFA_LEXER_H_ |
OLD | NEW |