Menu

[r5]: / trunk / python / python-parser.php  Maximize  Restore  History

Download this file

94 lines (79 with data), 1.5 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<?php
/*
DON'T EDIT THIS FILE!
This file was automatically generated by the Lime parser generator.
The real source code you should be looking at is in one or more
grammar files in the Lime format.
THE ONLY REASON TO LOOK AT THIS FILE is to see where in the grammar
file that your error happened, because there are enough comments to
help you debug your grammar.
If you ignore this warning, you're shooting yourself in the brain,
not the foot.
*/
class python extends lime_parser {
var $qi = 0;
var $i = array (
0 =>
array (
'simple_stmt' => 's 1',
'compound_stmt' => 's 2',
'stmt' => 's 3',
'\'start\'' => 'a \'start\'',
),
1 =>
array (
'#' => 'r 0',
),
2 =>
array (
'#' => 'r 1',
),
3 =>
array (
'#' => 'r 2',
),
);
function reduce_0_stmt_1($tokens, &$result) {
#
# (0) stmt := simple_stmt
#
$result = reset($tokens);
}
function reduce_1_stmt_2($tokens, &$result) {
#
# (1) stmt := compound_stmt
#
$result = reset($tokens);
}
function reduce_2_start_1($tokens, &$result) {
#
# (2) 'start' := stmt
#
$result = reset($tokens);
}
var $method = array (
0 => 'reduce_0_stmt_1',
1 => 'reduce_1_stmt_2',
2 => 'reduce_2_start_1',
);
var $a = array (
0 =>
array (
'symbol' => 'stmt',
'len' => 1,
'replace' => true,
),
1 =>
array (
'symbol' => 'stmt',
'len' => 1,
'replace' => true,
),
2 =>
array (
'symbol' => '\'start\'',
'len' => 1,
'replace' => true,
),
);
}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.