summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2009-11-11 10:39:23 -0600
committerAnthony Liguori <aliguori@us.ibm.com>2009-11-17 08:49:39 -0600
commit4a5fcab7acc55495d0a617eeebbbeaebc1872dbf (patch)
treed9af15127fa09c0498948ef7e96440fa53ead113 /json-parser.h
parentAdd a JSON message boundary identifier (diff)
downloadqemu-kvm-4a5fcab7acc55495d0a617eeebbbeaebc1872dbf.tar.gz
qemu-kvm-4a5fcab7acc55495d0a617eeebbbeaebc1872dbf.tar.bz2
qemu-kvm-4a5fcab7acc55495d0a617eeebbbeaebc1872dbf.zip
Add a JSON parser
This is the third and final stage of the JSON parser. It parses lexical tokens performing grammar validation and creating the final QObject representation. It uses a recursive decent parser. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'json-parser.h')
-rw-r--r--json-parser.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/json-parser.h b/json-parser.h
new file mode 100644
index 000000000..97f43f67d
--- /dev/null
+++ b/json-parser.h
@@ -0,0 +1,22 @@
+/*
+ * JSON Parser
+ *
+ * Copyright IBM, Corp. 2009
+ *
+ * Authors:
+ * Anthony Liguori <aliguori@us.ibm.com>
+ *
+ * This work is licensed under the terms of the GNU LGPL, version 2.1 or later.
+ * See the COPYING.LIB file in the top-level directory.
+ *
+ */
+
+#ifndef QEMU_JSON_PARSER_H
+#define QEMU_JSON_PARSER_H
+
+#include "qemu-common.h"
+#include "qlist.h"
+
+QObject *json_parser_parse(QList *tokens, va_list *ap);
+
+#endif