nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: update sav/nitserial_args1.res because change in RTA
[nit.git]
/
src
/
parser
/
xss
/
main.xss
diff --git
a/src/parser/xss/main.xss
b/src/parser/xss/main.xss
index
002a71b
..
fae2ea4
100644
(file)
--- a/
src/parser/xss/main.xss
+++ b/
src/parser/xss/main.xss
@@
-15,7
+15,6
@@
$ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
$ // See the License for the specific language governing permissions and
$ // limitations under the License.
$ // 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'
$ include 'lexer.xss'
$ include 'parser.xss'
$ include 'tokens.xss'
@@
-24,11
+23,10
@@
$ include 'prods.xss'
$ output 'parser_abs.nit'
# Raw AST node hierarchy.
# This file was generated by SableCC (http://www.sablecc.org/).
$ output 'parser_abs.nit'
# Raw AST node hierarchy.
# This file was generated by SableCC (http://www.sablecc.org/).
-package parser_abs
+module parser_abs is no_warning("missing-doc")
import location
import location
-$ call make_abs_nodes()
$ call make_abs_tokens()
$ call make_abs_prods()
$ end output
$ call make_abs_tokens()
$ call make_abs_prods()
$ end output
@@
-36,13
+34,16
@@
$ end output
$ output 'lexer.nit'
# Lexer and its tokens.
# This file was generated by SableCC (http://www.sablecc.org/).
$ output 'lexer.nit'
# Lexer and its tokens.
# This file was generated by SableCC (http://www.sablecc.org/).
-package lexer
+module lexer is no_warning("missing-doc")
$ if $usermodule
intrude import $usermodule
$ else
intrude import parser_abs
$ end
$ 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
$ call make_tokens()
$ call make_lexer()
$ end output
@@
-50,7
+51,7
@@
$ end output
$ output 'parser_prod.nit'
# Production AST nodes full definition.
# This file was generated by SableCC (http://www.sablecc.org/).
$ 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 is no_warning("missing-doc")
import lexer
$ if $usermodule
import lexer
$ if $usermodule
@@
-58,26
+59,27
@@
intrude import $usermodule
$ else
intrude import parser_abs
$ end
$ else
intrude import parser_abs
$ end
+private import tables
-$ call make_nodes()
$ call make_prods()
$ end output
$ 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/).
$ output 'parser.nit'
# Parser.
# This file was generated by SableCC (http://www.sablecc.org/).
-package parser
+module parser is no_warning("missing-doc", "unread-variable")
intrude import parser_prod
intrude import parser_prod
-intrude import parser_tables
+intrude import parser_work
+private import tables
$ call make_parser()
$ end output
$ call make_parser()
$ end output
+$ output 'tables_nit.c'
+/* This file was generated by SableCC (http://www.sablecc.org/). */
+#include <stdlib.h>
+#include "tables_nit.h"
+
+$ call make_lexer_table()
+$ call make_parser_table()
+$ end output