Merge: doc: fixed some typos and other misc. corrections
[nit.git] / c_src / tables_nit.h
1 #ifndef TABLE_NIT_H
2 #define TABLE_NIT_H
3 /* This file is part of NIT ( http://www.nitlanguage.org ).
4 *
5 * This file is free software, which comes along with NIT. This software is
6 * distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
7 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
8 * PARTICULAR PURPOSE. You can modify it is you want, provided this header
9 * is kept unaltered, and a notification of the changes is added.
10 * You are allowed to redistribute it and sell it, alone or is a part of
11 * another product.
12 */
13
14 extern const int* const lexer_goto_table[];
15 extern const int lexer_accept_table[];
16
17 #define lexer_goto(o,i,j) (lexer_goto_table[(i)][(j)])
18 #define lexer_accept(o,i) (lexer_accept_table[(i)])
19
20 extern const int* const parser_action_table[];
21 extern const int* const parser_goto_table[];
22
23 #define parser_action(o,i,j) (parser_action_table[(i)][(j)])
24 #define parser_goto(o,i,j) (parser_goto_table[(i)][(j)])
25
26 #endif