1 #include "nit.common.h"
2 #define COLOR_nit__parser_work__State___state 0
3 #define COLOR_nit__parser_work__State___nodes 1
4 #define COLOR_nit__parser_work___nit__parser_work__State___standard__kernel__Object__init 34
5 #define COLOR_nit__parser_work__Parser___lexer 0
6 void nit__parser___Parser___build_reduce_table(val
* self
);
7 long nit___nit__Parser___state(val
* self
);
8 #include "tables_nit.h"
9 extern const struct type type_standard__Int
;
10 extern const char FILE_standard__kernel
[];
11 #define COLOR_nit__parser_work__Parser___stack_pos 2
12 #define COLOR_nit__parser_work__Parser___stack 1
13 extern const char FILE_nit__parser_work
[];
14 #define COLOR_standard__array__AbstractArrayRead___length 0
15 val
* standard___standard__Array___standard__abstract_collection__SequenceRead___91d_93d(val
* self
, long p0
);
16 val
* NEW_nit__parser_work__State(const struct type
* type
);
17 extern const struct type type_nit__parser_work__State
;
18 #define COLOR_nit__parser_work__State__state_61d 32
19 #define COLOR_nit__parser_work__State__nodes_61d 33
20 #define COLOR_standard__kernel__Object__init 7
21 void standard___standard__AbstractArray___standard__abstract_collection__Sequence__push(val
* self
, val
* p0
);
22 void nit___nit__Parser___push(val
* self
, long p0
, val
* p1
);
23 val
* nit___nit__Lexer___peek(val
* self
);
24 extern const struct type type_nit__AError
;
25 val
* NEW_nit__Start(const struct type
* type
);
26 extern const struct type type_nit__Start
;
27 #define COLOR_nit__parser_nodes__Start__n_base_61d 57
28 #define COLOR_nit__parser_nodes__Start__n_eof_61d 59
29 #define COLOR_nit__lexer_work__Token__parser_index 53
30 val
* nit___nit__Lexer___next(val
* self
);
31 #define COLOR_nit__parser_work__Parser___reduce_table 3
32 #define COLOR_nit__parser_work__ReduceAction__action 32
33 extern const struct type type_nit__EOF
;
34 val
* nit___nit__Parser___pop(val
* self
);
35 extern const struct type type_nit__AModule
;
36 val
* NEW_nit__parser_work__ComputeProdLocationVisitor(const struct type
* type
);
37 extern const struct type type_nit__parser_work__ComputeProdLocationVisitor
;
38 void nit___nit__Visitor___enter_visit(val
* self
, val
* p0
);
39 #define COLOR_nit__parser_nodes__ANode___location 0
40 val
* NEW_nit__AParserError(const struct type
* type
);
41 extern const struct type type_nit__AParserError
;
42 val
* standard___standard__NativeString___to_s_with_length(char* self
, long p0
);
43 val
* NEW_standard__Array(const struct type
* type
);
44 extern const struct type type_standard__Array__standard__Object
;
45 val
* NEW_standard__NativeArray(int length
, const struct type
* type
);
46 extern const struct type type_standard__NativeArray__standard__Object
;
47 #define COLOR_standard__array__Array__with_native 73
48 #define COLOR_standard__string__Object__to_s 9
49 extern const char FILE_nit__parser_nodes
[];
50 void nit__lexer_work___AParserError___init_parser_error(val
* self
, val
* p0
, val
* p1
, val
* p2
);
51 val
* NEW_nit__parser_work__TextCollectorVisitor(const struct type
* type
);
52 extern const struct type type_nit__parser_work__TextCollectorVisitor
;
53 #define COLOR_nit__parser_work__TextCollectorVisitor___text 1
54 #define COLOR_standard__kernel__Object___61d_61d 2
55 extern const struct type type_nit__Token
;
56 #define COLOR_nit__parser_work__ComputeProdLocationVisitor___last_location 3
57 #define COLOR_nit__parser_work__ComputeProdLocationVisitor___need_first_prods 1
58 short int standard___standard__AbstractArrayRead___standard__abstract_collection__Collection__is_empty(val
* self
);
59 val
* standard___standard__AbstractArrayRead___standard__abstract_collection__Collection__iterator(val
* self
);
60 short int standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__is_ok(val
* self
);
61 val
* standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__item(val
* self
);
62 #define COLOR_nit__parser_work__Prod___first_location 3
63 void standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__next(val
* self
);
64 void standard___standard__AbstractArray___standard__abstract_collection__RemovableCollection__clear(val
* self
);
65 #define COLOR_nit__parser_work__ComputeProdLocationVisitor___need_after_epsilons 2
66 val
* NEW_nit__Location(const struct type
* type
);
67 extern const struct type type_nit__Location
;
68 #define COLOR_nit__location__Location___file 0
69 #define COLOR_nit__location__Location___line_start 1
70 #define COLOR_nit__location__Location___column_start 3
71 #define COLOR_nit__location__Location__file_61d 38
72 #define COLOR_nit__location__Location__line_start_61d 40
73 #define COLOR_nit__location__Location__line_end_61d 42
74 #define COLOR_nit__location__Location__column_start_61d 44
75 #define COLOR_nit__location__Location__column_end_61d 46
76 extern const struct type type_nit__Prod
;
77 void standard___standard__Array___standard__abstract_collection__SimpleCollection__add(val
* self
, val
* p0
);
78 #define COLOR_nit__parser_nodes__ANode__visit_all 40
79 #define COLOR_nit__location__Location___line_end 2
80 #define COLOR_nit__location__Location___column_end 4
81 val
* nit__lexer_work___Token___text(val
* self
);
82 #define COLOR_standard__string__String___43d 82
83 void standard___standard__Sequence___append(val
* self
, val
* p0
);
84 #define COLOR_nit__parser_work__ReduceAction___goto 0
85 #define COLOR_nit__parser_work___nit__parser_work__ReduceAction___standard__kernel__Object__init 35