summaryrefslogtreecommitdiff
path: root/src/parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.h')
-rw-r--r--src/parser.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/parser.h b/src/parser.h
index a3829d55..37af7e7e 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -49,9 +49,13 @@ struct BaseParser
bool insideRegion()
{ return regionStack.length() > 0; }
+
Context *curContext()
{ return contextStack.length() == 0 ? 0 : contextStack.top(); }
+ Namespace *curNspace()
+ { return namespaceStack.top(); }
+
/* Lexical feedback. */
void init();