forgot to update pxd in previous commit
[cython.git] / Cython / Compiler / Parsing.pxd
1 # We declare all of these here to type the first argument.
2
3 from Cython.Compiler.Scanning cimport PyrexScanner
4
5
6 cpdef p_ident(PyrexScanner s, message =*)
7 cpdef p_ident_list(PyrexScanner s)
8
9 cpdef p_binop_expr(PyrexScanner s, ops, p_sub_expr)
10 cpdef p_simple_expr(PyrexScanner s)
11 cpdef p_test(PyrexScanner s)
12 cpdef p_or_test(PyrexScanner s)
13 cpdef p_rassoc_binop_expr(PyrexScanner s, ops, p_subexpr)
14 cpdef p_and_test(PyrexScanner s)
15 cpdef p_not_test(PyrexScanner s)
16 cpdef p_comparison(PyrexScanner s)
17 cpdef p_cascaded_cmp(PyrexScanner s)
18 cpdef p_cmp_op(PyrexScanner s)
19 cpdef p_starred_expr(PyrexScanner s)
20 cpdef p_bit_expr(PyrexScanner s)
21 cpdef p_xor_expr(PyrexScanner s)
22 cpdef p_and_expr(PyrexScanner s)
23 cpdef p_shift_expr(PyrexScanner s)
24 cpdef p_arith_expr(PyrexScanner s)
25 cpdef p_term(PyrexScanner s)
26 cpdef p_factor(PyrexScanner s)
27 cpdef p_typecast(PyrexScanner s)
28 cpdef p_sizeof(PyrexScanner s)
29 cpdef p_yield_expression(PyrexScanner s)
30 cpdef p_power(PyrexScanner s)
31 cpdef p_new_expr(PyrexScanner s)
32 cpdef p_trailer(PyrexScanner s, node1)
33 cpdef p_call(PyrexScanner s, function)
34 cpdef p_index(PyrexScanner s, base)
35 cpdef p_subscript_list(PyrexScanner s)
36 cpdef p_subscript(PyrexScanner s)
37 cpdef p_slice_element(PyrexScanner s, follow_set)
38 cpdef expect_ellipsis(PyrexScanner s)
39 cpdef make_slice_nodes(pos, subscripts)
40 cpdef make_slice_node(pos, start, stop = *, step = *)
41 cpdef p_atom(PyrexScanner s)
42 cpdef p_name(PyrexScanner s, name)
43 cpdef p_cat_string_literal(PyrexScanner s)
44 cpdef p_opt_string_literal(PyrexScanner s)
45 cpdef p_string_literal(PyrexScanner s, kind_override=*)
46 cpdef p_list_maker(PyrexScanner s)
47 cpdef p_list_iter(PyrexScanner s, body)
48 cpdef p_list_for(PyrexScanner s, body)
49 cpdef p_list_if(PyrexScanner s, body)
50 cpdef p_dict_or_set_maker(PyrexScanner s)
51 cpdef p_backquote_expr(PyrexScanner s)
52 cpdef p_simple_expr_list(PyrexScanner s)
53 cpdef p_expr(PyrexScanner s)
54 cpdef p_testlist(PyrexScanner s)
55
56 #-------------------------------------------------------
57 #
58 #   Statements
59 #
60 #-------------------------------------------------------
61
62 cpdef p_global_statement(PyrexScanner s)
63 cpdef p_expression_or_assignment(PyrexScanner s)
64 cpdef p_print_statement(PyrexScanner s)
65 cpdef p_exec_statement(PyrexScanner s)
66 cpdef p_del_statement(PyrexScanner s)
67 cpdef p_pass_statement(PyrexScanner s, bint with_newline = *)
68 cpdef p_break_statement(PyrexScanner s)
69 cpdef p_continue_statement(PyrexScanner s)
70 cpdef p_return_statement(PyrexScanner s)
71 cpdef p_raise_statement(PyrexScanner s)
72 cpdef p_import_statement(PyrexScanner s)
73 cpdef p_from_import_statement(PyrexScanner s, bint first_statement = *)
74 cpdef p_imported_name(PyrexScanner s, bint is_cimport)
75 cpdef p_dotted_name(PyrexScanner s, bint as_allowed)
76 cpdef p_as_name(PyrexScanner s)
77 cpdef p_assert_statement(PyrexScanner s)
78 cpdef p_if_statement(PyrexScanner s)
79 cpdef p_if_clause(PyrexScanner s)
80 cpdef p_else_clause(PyrexScanner s)
81 cpdef p_while_statement(PyrexScanner s)
82 cpdef p_for_statement(PyrexScanner s)
83 cpdef p_for_bounds(PyrexScanner s)
84 cpdef p_for_from_relation(PyrexScanner s)
85 cpdef p_for_from_step(PyrexScanner s)
86 cpdef p_target(PyrexScanner s, terminator)
87 cpdef p_for_target(PyrexScanner s)
88 cpdef p_for_iterator(PyrexScanner s)
89 cpdef p_try_statement(PyrexScanner s)
90 cpdef p_except_clause(PyrexScanner s)
91 cpdef p_include_statement(PyrexScanner s, ctx)
92 cpdef p_with_statement(PyrexScanner s)
93 cpdef p_simple_statement(PyrexScanner s, bint first_statement = *)
94 cpdef p_simple_statement_list(PyrexScanner s, ctx, bint first_statement = *)
95 cpdef p_compile_time_expr(PyrexScanner s)
96 cpdef p_DEF_statement(PyrexScanner s)
97 cpdef p_IF_statement(PyrexScanner s, ctx)
98 cpdef p_statement(PyrexScanner s, ctx, bint first_statement = *)
99 cpdef p_statement_list(PyrexScanner s, ctx, bint first_statement = *)
100 cpdef p_suite(PyrexScanner s, ctx = *, bint with_doc = *, bint with_pseudo_doc = *)
101 cpdef p_positional_and_keyword_args(PyrexScanner s, end_sy_set, templates = *)
102
103 cpdef p_c_base_type(PyrexScanner s, bint self_flag = *, bint nonempty = *, templates = *)
104 cpdef p_calling_convention(PyrexScanner s)
105 cpdef p_c_complex_base_type(PyrexScanner s)
106 cpdef p_c_simple_base_type(PyrexScanner s, bint self_flag, bint nonempty, templates = *)
107 cpdef p_buffer_or_template(PyrexScanner s, base_type_node, templates)
108 cpdef bint looking_at_name(PyrexScanner s) except -2
109 cpdef bint looking_at_expr(PyrexScanner s) except -2
110 cpdef bint looking_at_base_type(PyrexScanner s) except -2
111 cpdef bint looking_at_dotted_name(PyrexScanner s) except -2
112 cpdef p_sign_and_longness(PyrexScanner s)
113 cpdef p_opt_cname(PyrexScanner s)
114 cpdef p_c_declarator(PyrexScanner s, ctx = *, bint empty = *, bint is_type = *, bint cmethod_flag = *,
115                    bint assignable = *, bint nonempty = *,
116                    bint calling_convention_allowed = *)
117 cpdef p_c_array_declarator(PyrexScanner s, base)
118 cpdef p_c_func_declarator(PyrexScanner s, pos, ctx, base, bint cmethod_flag)
119 cpdef p_c_simple_declarator(PyrexScanner s, ctx, bint empty, bint is_type, bint cmethod_flag,
120                           bint assignable, bint nonempty)
121 cpdef p_nogil(PyrexScanner s)
122 cpdef p_with_gil(PyrexScanner s)
123 cpdef p_exception_value_clause(PyrexScanner s)
124 cpdef p_c_arg_list(PyrexScanner s, ctx = *, bint in_pyfunc = *, bint cmethod_flag = *,
125                  bint nonempty_declarators = *, bint kw_only = *)
126 cpdef p_optional_ellipsis(PyrexScanner s)
127 cpdef p_c_arg_decl(PyrexScanner s, ctx, in_pyfunc, bint cmethod_flag = *, bint nonempty = *, bint kw_only = *)
128 cpdef p_api(PyrexScanner s)
129 cpdef p_cdef_statement(PyrexScanner s, ctx)
130 cpdef p_cdef_block(PyrexScanner s, ctx)
131 cpdef p_cdef_extern_block(PyrexScanner s, pos, ctx)
132 cpdef p_c_enum_definition(PyrexScanner s, pos, ctx)
133 cpdef p_c_enum_line(PyrexScanner s, ctx, items)
134 cpdef p_c_enum_item(PyrexScanner s, ctx, items)
135 cpdef p_c_struct_or_union_definition(PyrexScanner s, pos, ctx)
136 cpdef p_visibility(PyrexScanner s, prev_visibility)
137 cpdef p_c_modifiers(PyrexScanner s)
138 cpdef p_c_func_or_var_declaration(PyrexScanner s, pos, ctx)
139 cpdef p_ctypedef_statement(PyrexScanner s, ctx)
140 cpdef p_decorators(PyrexScanner s)
141 cpdef p_def_statement(PyrexScanner s, decorators = *)
142 cpdef p_py_arg_decl(PyrexScanner s)
143 cpdef p_class_statement(PyrexScanner s, decorators)
144 cpdef p_c_class_definition(PyrexScanner s, pos,  ctx)
145 cpdef p_c_class_options(PyrexScanner s)
146 cpdef p_property_decl(PyrexScanner s)
147 cpdef p_doc_string(PyrexScanner s)
148 cpdef p_code(PyrexScanner s, level= *)
149 cpdef p_compiler_directive_comments(PyrexScanner s)
150 cpdef p_module(PyrexScanner s, pxd, full_module_name)
151 cpdef p_cpp_class_definition(PyrexScanner s, pos, ctx)