$ // See the License for the specific language governing permissions and
$ // limitations under the License.
-$ include 'nodes.xss'
$ include 'lexer.xss'
$ include 'parser.xss'
$ include 'tokens.xss'
$ output 'parser_abs.nit'
# Raw AST node hierarchy.
# This file was generated by SableCC (http://www.sablecc.org/).
-package parser_abs
+module parser_abs
import location
-$ call make_abs_nodes()
$ call make_abs_tokens()
$ call make_abs_prods()
$ end output
$ output 'lexer.nit'
# Lexer and its tokens.
# This file was generated by SableCC (http://www.sablecc.org/).
-package lexer
+module lexer
$ if $usermodule
intrude import $usermodule
$ else
intrude import parser_abs
$ end
+intrude import lexer_work
private import tables
+
$ call make_tokens()
$ call make_lexer()
$ end output
$ output 'parser_prod.nit'
# Production AST nodes full definition.
# This file was generated by SableCC (http://www.sablecc.org/).
-package parser_prod
+module parser_prod
import lexer
$ if $usermodule
$ end
private import tables
-$ call make_nodes()
$ call make_prods()
$ end output
$ output 'parser.nit'
# Parser.
# This file was generated by SableCC (http://www.sablecc.org/).
-package parser
+module parser
intrude import parser_prod
+intrude import parser_work
+private import tables
$ call make_parser()
$ end output