summaryrefslogtreecommitdiff
path: root/src/colm.lm
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2014-01-05 16:56:03 -0500
committerAdrian Thurston <thurston@complang.org>2014-01-05 16:56:03 -0500
commitbf03ab077e6acc5f36d2ffe1d35eecc21b058206 (patch)
tree5644a245f886b4a940ddc0134991f9176b8507d0 /src/colm.lm
parentb92c9325a0372a689c850d977a70c29b232fe4f4 (diff)
downloadcolm-bf03ab077e6acc5f36d2ffe1d35eecc21b058206.tar.gz
added a namespace item list definition
The namespace item doesn't allow statements in namespaces.
Diffstat (limited to 'src/colm.lm')
-rw-r--r--src/colm.lm18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/colm.lm b/src/colm.lm
index f9125b36..d90bc895 100644
--- a/src/colm.lm
+++ b/src/colm.lm
@@ -289,7 +289,23 @@ def opt_no_ignore
| []
def namespace_def
- [NAMESPACE id RootItemList: root_item* END]
+ [NAMESPACE id ItemList: namespace_item* END]
+
+def namespace_item
+ [rl_def] :Rl commit
+| [literal_def] :Literal commit
+| [token_def] :Token commit
+| [ignore_def] :Ignore commit
+| [cfl_def] :Cfl commit
+| [region_def] :Region commit
+| [context_def] :Context commit
+| [namespace_def] :Namespace commit
+| [function_def] :Function commit
+| [iter_def] :Iter commit
+| [pre_eof_def] :PreEof commit
+| [precedence_def] :Precedence commit
+| [alias_def] :Alias commit
+| [include] :Include commit
def obj_var_list
[]