Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tiger
monoburg
Commits
df94792d
Commit
df94792d
authored
Jan 19, 2006
by
Roland Levillain
Browse files
- src/parser.y: Handle `with-references' option as a MonoBURG
\%-directive.
parent
cf8d7ff3
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
df94792d
2006-01-19 Roland Levillain <roland@lrde.epita.fr>
* src/parser.y: Handle `with-references' option as a MonoBURG
\%-directive.
2006-01-19 Roland Levillain <roland@lrde.epita.fr>
Support Vcs.
...
...
src/parser.y
View file @
df94792d
...
...
@@ -21,6 +21,7 @@
#include <assert.h>
#include <stdarg.h>
#include <stdlib.h>
#include <errno.h>
#include <ctype.h>
#include <string.h>
...
...
@@ -53,6 +54,7 @@ GList *include_dirs = NULL;
%token TERM
%token TERMPREFIX
%token NAMESPACE
%token WITH_REFERENCES
%token <ivalue> INTEGER
%type <tree> tree
...
...
@@ -73,6 +75,12 @@ decls : /* empty */
warn_cxx ("`%namespace' directive");
namespaces = g_list_append (namespaces, $2);
} decls
| WITH_REFERENCES {
warn_cxx ("`%with-references' directive");
g_hash_table_insert (definedvars,
g_strdup ("__WITH_REFERENCES"),
GUINT_TO_POINTER (1));
} decls
| rule_list optcost optcode optcfunc {
GList *tmp;
for (tmp = $1; tmp; tmp = tmp->next) {
...
...
@@ -396,6 +404,11 @@ yylex (void)
return NAMESPACE;
}
if (!strncmp (next, "with-references", 15) && isspace (next[15])) {
next += 15;
return WITH_REFERENCES;
}
return c;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment