aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-04-17 23:55:20 +0200
committerMattias Andrée <maandree@kth.se>2021-04-17 23:55:20 +0200
commit508b78615738a670cb242c343574a1de056e8900 (patch)
tree7234989f72d83302a1163d3b95a8b88e7bddb77d
parentmakefile: install/uninstall libparser.7 and libparser-generate.1 (diff)
downloadlibparser-508b78615738a670cb242c343574a1de056e8900.tar.gz
libparser-508b78615738a670cb242c343574a1de056e8900.tar.bz2
libparser-508b78615738a670cb242c343574a1de056e8900.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r--libparser.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libparser.h b/libparser.h
index 67ba11a..88e5b6e 100644
--- a/libparser.h
+++ b/libparser.h
@@ -4,6 +4,9 @@
#include <stddef.h>
+
+/* This is mostly internal (unless you want to programmatically create a grammar) { */
+
union libparser_sentence;
enum libparser_sentence_type {
@@ -60,6 +63,9 @@ struct libparser_rule {
union libparser_sentence *sentence;
};
+/* } */
+
+
struct libparser_unit {
const char *rule;
struct libparser_unit *in;