aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorc+12023-10-28 09:59:56 -0400
committerc+12023-10-28 09:59:56 -0400
commitfb2efbd868556da31d128c755beeefd37b0178c3 (patch)
treeffa2932ba84b3f796236c46a58026c81ca60996d /src/include
parent820e75e4caa70be9719c728187a56f225e0bc136 (diff)
fixed numbers. Added keywords.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/syntax.h5
-rw-r--r--src/include/token.h1
-rw-r--r--src/include/tree.h5
3 files changed, 10 insertions, 1 deletions
diff --git a/src/include/syntax.h b/src/include/syntax.h
index b4410c5..777fea4 100644
--- a/src/include/syntax.h
+++ b/src/include/syntax.h
@@ -14,11 +14,14 @@
#define SYNTAX_APPLY '.'
#define SYNTAX_LIST_DELIM ','
#define SYNTAX_TAG_DELIM ':'
-#define SYNTAX_NAMESPACE_DELIM '/'
+#define SYNTAX_NAMESPACE_DELIM '!'
#define SYNTAX_LBLOCK '{'
#define SYNTAX_RBLOCK '}'
#define SYNTAX_RLIST '['
#define SYNTAX_LLIST ']'
#define SYNTAX_ESC '\\'
+/* characters that can appear in keywords */
+#define SYNTAX_KWD_CHARS "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_~|&+-/*<>=%^$@?"
+
#endif
diff --git a/src/include/token.h b/src/include/token.h
index 129ed76..9e64c97 100644
--- a/src/include/token.h
+++ b/src/include/token.h
@@ -24,6 +24,7 @@ typedef struct TOKEN_STRUC {
TOKEN_RLIST,
TOKEN_LLIST,
TOKEN_ESC,
+ TOKEN_KWD,
TOKEN_INT
} type;
diff --git a/src/include/tree.h b/src/include/tree.h
index a240a18..108f646 100644
--- a/src/include/tree.h
+++ b/src/include/tree.h
@@ -27,6 +27,11 @@ typedef struct TREE_T_STRUCT {
arg_t* arg;
struct TREE_T_STRUCT* val;
} tree_def;
+
+ struct {
+ char* id;
+ arg_t* arg;
+ } tree_cal;
} data;
} tree_t;