1 #include "nit.common.h"
2 #define COLOR_parser_work__State___state 0
3 #define COLOR_parser_work__State___nodes 1
4 void parser_work__State__init(val
* self
, long p0
, val
* p1
);
5 #define COLOR_parser_work__Parser___lexer 0
6 val
* NEW_array__Array(const struct type
* type
);
7 extern const struct type type_array__Arrayparser_work__State
;
8 void array__Array__init(val
* self
);
9 #define COLOR_parser_work__Parser___stack 1
10 #define COLOR_parser_work__Parser___stack_pos 2
11 void parser__Parser__build_reduce_table(val
* self
);
12 void parser_work__Parser__init(val
* self
, val
* p0
);
13 long parser_work__Parser__state(val
* self
);
14 #include "tables_nit.h"
15 extern const struct type type_kernel__Int
;
16 long parser_work__Parser__go_to(val
* self
, long p0
);
17 long array__AbstractArrayRead__length(val
* self
);
18 val
* array__Array___91d_93d(val
* self
, long p0
);
19 val
* NEW_parser_work__State(const struct type
* type
);
20 extern const struct type type_parser_work__State
;
21 void array__AbstractArray__push(val
* self
, val
* p0
);
22 void parser_work__Parser__push(val
* self
, long p0
, val
* p1
);
23 val
* parser_work__Parser__pop(val
* self
);
24 val
* lexer_work__Lexer__peek(val
* self
);
25 extern const struct type type_parser_nodes__AError
;
26 val
* NEW_parser_nodes__Start(const struct type
* type
);
27 extern const struct type type_parser_nodes__Start
;
28 void parser_nodes__Start__init(val
* self
, val
* p0
, val
* p1
);
29 #define COLOR_lexer_work__Token__parser_index 49
30 val
* lexer_work__Lexer__next(val
* self
);
31 #define COLOR_parser_work__Parser___reduce_table 3
32 #define COLOR_parser_work__ReduceAction__action 29
33 extern const struct type type_parser_nodes__EOF
;
34 extern const struct type type_parser_nodes__AModule
;
35 val
* NEW_parser_work__ComputeProdLocationVisitor(const struct type
* type
);
36 extern const struct type type_parser_work__ComputeProdLocationVisitor
;
37 void parser_work__ComputeProdLocationVisitor__init(val
* self
);
38 void parser_nodes__Visitor__enter_visit(val
* self
, val
* p0
);
39 #define COLOR_parser_nodes__ANode___location 0
40 short int location__Location___61d_61d(val
* self
, val
* p0
);
41 val
* NEW_parser_nodes__AParserError(const struct type
* type
);
42 extern const struct type type_parser_nodes__AParserError
;
43 val
* string__NativeString__to_s_with_length(char* self
, long p0
);
44 extern const struct type type_array__Arraykernel__Object
;
45 val
* NEW_array__NativeArray(int length
, const struct type
* type
);
46 extern const struct type type_array__NativeArraykernel__Object
;
47 #define COLOR_array__Array__with_native 65
48 #define COLOR_string__Object__to_s 7
49 val
* parser_nodes__ANode__location(val
* self
);
50 void lexer_work__AParserError__init_parser_error(val
* self
, val
* p0
, val
* p1
, val
* p2
);
51 val
* parser_work__Parser__parse(val
* self
);
52 extern const struct type type_parser_nodes__Token
;
53 #define COLOR_parser_work__ComputeProdLocationVisitor___last_location 3
54 #define COLOR_parser_work__ComputeProdLocationVisitor___need_first_prods 1
55 short int array__AbstractArrayRead__is_empty(val
* self
);
56 val
* array__AbstractArrayRead__iterator(val
* self
);
57 short int array__ArrayIterator__is_ok(val
* self
);
58 val
* array__ArrayIterator__item(val
* self
);
59 #define COLOR_parser_work__Prod___first_location 3
60 void array__ArrayIterator__next(val
* self
);
61 void array__AbstractArray__clear(val
* self
);
62 #define COLOR_parser_work__ComputeProdLocationVisitor___need_after_epsilons 2
63 val
* NEW_location__Location(const struct type
* type
);
64 extern const struct type type_location__Location
;
65 #define COLOR_location__Location___file 0
66 #define COLOR_location__Location___line_start 1
67 #define COLOR_location__Location___column_start 3
68 void location__Location__init(val
* self
, val
* p0
, long p1
, long p2
, long p3
, long p4
);
69 void parser_nodes__Prod__location_61d(val
* self
, val
* p0
);
70 extern const struct type type_parser_nodes__Prod
;
71 void array__Array__add(val
* self
, val
* p0
);
72 #define COLOR_parser_nodes__ANode__visit_all 37
73 #define COLOR_kernel__Object___61d_61d 2
74 #define COLOR_location__Location___line_end 2
75 #define COLOR_location__Location___column_end 4
76 void parser_work__ComputeProdLocationVisitor__visit(val
* self
, val
* p0
);
77 void abstract_collection__Sequence__append(val
* self
, val
* p0
);
78 val
* parser_work__ReduceAction__concat(val
* self
, val
* p0
, val
* p1
);
79 #define COLOR_parser_work__ReduceAction___goto 0
80 void parser_work__ReduceAction__init(val
* self
, long p0
);