summaryrefslogtreecommitdiffstats
path: root/dimension/grammar.epilogue
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-03-23 19:54:52 -0400
committerTavian Barnes <tavianator@gmail.com>2010-03-23 19:54:52 -0400
commit44a4fe4772dae123e2755e9b214d289715ec27c3 (patch)
tree7b2a5c0b4b7f287c524151ec8d71ebca0267ecec /dimension/grammar.epilogue
parent5952fd7587af834d6fee3443ad97c2ee11be81e1 (diff)
downloaddimension-44a4fe4772dae123e2755e9b214d289715ec27c3.tar.xz
Use $var instead of __var__ for internal symbols.
Diffstat (limited to 'dimension/grammar.epilogue')
-rw-r--r--dimension/grammar.epilogue8
1 files changed, 4 insertions, 4 deletions
diff --git a/dimension/grammar.epilogue b/dimension/grammar.epilogue
index fddf088..9a5d8a6 100644
--- a/dimension/grammar.epilogue
+++ b/dimension/grammar.epilogue
@@ -23,12 +23,12 @@ dmnsn_astree *
dmnsn_parse(FILE *file, dmnsn_symbol_table *symtable)
{
const char *filename;
- dmnsn_astnode *fnode = dmnsn_find_symbol(symtable, "__file__");
+ dmnsn_astnode *fnode = dmnsn_find_symbol(symtable, "$file");
if (fnode && fnode->type == DMNSN_AST_STRING) {
filename = fnode->ptr;
} else {
filename = "<>";
- dmnsn_declare_symbol(symtable, "__file__", dmnsn_new_ast_string(filename));
+ dmnsn_declare_symbol(symtable, "$file", dmnsn_new_ast_string(filename));
}
void *scanner;
@@ -52,12 +52,12 @@ dmnsn_astree *
dmnsn_parse_string(const char *str, dmnsn_symbol_table *symtable)
{
const char *filename;
- dmnsn_astnode *fnode = dmnsn_find_symbol(symtable, "__file__");
+ dmnsn_astnode *fnode = dmnsn_find_symbol(symtable, "$file");
if (fnode && fnode->type == DMNSN_AST_STRING) {
filename = fnode->ptr;
} else {
filename = "<string>";
- dmnsn_declare_symbol(symtable, "__file__", dmnsn_new_ast_string(filename));
+ dmnsn_declare_symbol(symtable, "$file", dmnsn_new_ast_string(filename));
}
void *scanner;