model: new metamodel
[nit.git] / src / parser / xss / main.xss
index 2dc30b0..d6bd9e8 100644 (file)
@@ -59,26 +59,19 @@ intrude import $usermodule
 $ else
 intrude import parser_abs
 $ end
+private import tables
 
 $ call make_nodes()
 $ call make_prods()
 $ end output
 
-$ output 'parser_tables.nit'
-# Tables used by the parser.
-# This file was generated by SableCC (http://www.sablecc.org/).
-package parser_tables
-
-$ call make_parser_tables()
-$ end output
-
 $ output 'parser.nit'
 # Parser.
 # This file was generated by SableCC (http://www.sablecc.org/).
 package parser
 
 intrude import parser_prod
-intrude import parser_tables
+import tables
 $ call make_parser()
 $ end output
 
@@ -88,4 +81,5 @@ $ output 'tables_nit.c'
 #include "tables_nit.h"
 
 $ call make_lexer_table()
+$ call make_parser_table()
 $ end output