summaryrefslogtreecommitdiff
path: root/src/wasm-ast-parser.h
diff options
context:
space:
mode:
authorBen Smith <binji@chromium.org>2016-04-28 21:26:51 -0700
committerBen Smith <binji@chromium.org>2016-04-28 21:58:25 -0700
commit98729df534b55d495d0040266daaaf96ed41b9f9 (patch)
tree5c94244240665db55ad7442fe8cf162cfcd08fce /src/wasm-ast-parser.h
parent8ef2f014f80ad118c901db4c65d4feb0baf878da (diff)
downloadwabt-98729df534b55d495d0040266daaaf96ed41b9f9.tar.gz
wabt-98729df534b55d495d0040266daaaf96ed41b9f9.tar.bz2
wabt-98729df534b55d495d0040266daaaf96ed41b9f9.zip
rename Lexer -> AstLexer, Parser -> AstParser
This matches other files, and will be nicer if other lexers/parsers are added. Also remove some references to flex, and the flex lexer.
Diffstat (limited to 'src/wasm-ast-parser.h')
-rw-r--r--src/wasm-ast-parser.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/wasm-ast-parser.h b/src/wasm-ast-parser.h
new file mode 100644
index 00000000..8a9b0860
--- /dev/null
+++ b/src/wasm-ast-parser.h
@@ -0,0 +1,31 @@
+/*
+ * Copyright 2016 WebAssembly Community Group participants
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef WASM_AST_PARSER_H_
+#define WASM_AST_PARSER_H_
+
+#include "wasm-ast-lexer.h"
+#include "wasm-common.h"
+
+struct WasmScript;
+
+WASM_EXTERN_C_BEGIN
+WasmResult wasm_parse_ast(WasmAstLexer* lexer,
+ struct WasmScript* out_script,
+ WasmSourceErrorHandler*);
+WASM_EXTERN_C_END
+
+#endif /* WASM_AST_PARSER_H_ */