breakout_parser 0.0.16 → 0.0.17
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +5 -0
- data/ext/breakout_parser/lex.yy.c +13 -13
- data/ext/breakout_parser/parser.l +13 -13
- metadata +3 -3
data/ChangeLog
CHANGED
@@ -1530,25 +1530,25 @@ case 4:
|
|
1530
1530
|
/* rule 4 can match eol */
|
1531
1531
|
YY_RULE_SETUP
|
1532
1532
|
#line 95 "parser.l"
|
1533
|
-
{
|
1533
|
+
{ yy_push_state(_PRE_CODE); return PRE_CODE_START; }
|
1534
1534
|
YY_BREAK
|
1535
1535
|
case 5:
|
1536
1536
|
/* rule 5 can match eol */
|
1537
1537
|
YY_RULE_SETUP
|
1538
1538
|
#line 96 "parser.l"
|
1539
|
-
{
|
1539
|
+
{ yy_push_state(_PRE); return PRE_START; }
|
1540
1540
|
YY_BREAK
|
1541
1541
|
case 6:
|
1542
1542
|
/* rule 6 can match eol */
|
1543
1543
|
YY_RULE_SETUP
|
1544
1544
|
#line 97 "parser.l"
|
1545
|
-
{
|
1545
|
+
{ yy_push_state(_NOTEXTILE); return NOTEXTILE_START; }
|
1546
1546
|
YY_BREAK
|
1547
1547
|
case 7:
|
1548
1548
|
/* rule 7 can match eol */
|
1549
1549
|
YY_RULE_SETUP
|
1550
1550
|
#line 98 "parser.l"
|
1551
|
-
{ yy_push_state(_CODE);
|
1551
|
+
{ yy_push_state(_CODE); return CODE_START; }
|
1552
1552
|
YY_BREAK
|
1553
1553
|
case 8:
|
1554
1554
|
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
|
@@ -1833,13 +1833,13 @@ case 50:
|
|
1833
1833
|
/* rule 50 can match eol */
|
1834
1834
|
YY_RULE_SETUP
|
1835
1835
|
#line 175 "parser.l"
|
1836
|
-
{
|
1836
|
+
{ yy_pop_state(); return NOTEXTILE_END; }
|
1837
1837
|
YY_BREAK
|
1838
1838
|
case 51:
|
1839
1839
|
/* rule 51 can match eol */
|
1840
1840
|
YY_RULE_SETUP
|
1841
1841
|
#line 176 "parser.l"
|
1842
|
-
{
|
1842
|
+
{ yy_pop_state(); return NOTEXTILE_END; }
|
1843
1843
|
YY_BREAK
|
1844
1844
|
case 52:
|
1845
1845
|
YY_RULE_SETUP
|
@@ -1848,19 +1848,19 @@ YY_RULE_SETUP
|
|
1848
1848
|
YY_BREAK
|
1849
1849
|
case YY_STATE_EOF(_NOTEXTILE):
|
1850
1850
|
#line 178 "parser.l"
|
1851
|
-
{
|
1851
|
+
{ yy_pop_state(); return NOTEXTILE_END; }
|
1852
1852
|
YY_BREAK
|
1853
1853
|
case 53:
|
1854
1854
|
/* rule 53 can match eol */
|
1855
1855
|
YY_RULE_SETUP
|
1856
1856
|
#line 180 "parser.l"
|
1857
|
-
{
|
1857
|
+
{ yy_pop_state(); return PRE_CODE_END; }
|
1858
1858
|
YY_BREAK
|
1859
1859
|
case 54:
|
1860
1860
|
/* rule 54 can match eol */
|
1861
1861
|
YY_RULE_SETUP
|
1862
1862
|
#line 181 "parser.l"
|
1863
|
-
{
|
1863
|
+
{ yy_pop_state(); return PRE_CODE_END; }
|
1864
1864
|
YY_BREAK
|
1865
1865
|
case 55:
|
1866
1866
|
YY_RULE_SETUP
|
@@ -1869,19 +1869,19 @@ YY_RULE_SETUP
|
|
1869
1869
|
YY_BREAK
|
1870
1870
|
case YY_STATE_EOF(_PRE_CODE):
|
1871
1871
|
#line 183 "parser.l"
|
1872
|
-
{
|
1872
|
+
{ yy_pop_state(); return PRE_CODE_END; }
|
1873
1873
|
YY_BREAK
|
1874
1874
|
case 56:
|
1875
1875
|
/* rule 56 can match eol */
|
1876
1876
|
YY_RULE_SETUP
|
1877
1877
|
#line 185 "parser.l"
|
1878
|
-
{
|
1878
|
+
{ yy_pop_state(); return PRE_END; }
|
1879
1879
|
YY_BREAK
|
1880
1880
|
case 57:
|
1881
1881
|
/* rule 57 can match eol */
|
1882
1882
|
YY_RULE_SETUP
|
1883
1883
|
#line 186 "parser.l"
|
1884
|
-
{
|
1884
|
+
{ yy_pop_state(); return PRE_END; }
|
1885
1885
|
YY_BREAK
|
1886
1886
|
case 58:
|
1887
1887
|
YY_RULE_SETUP
|
@@ -1890,7 +1890,7 @@ YY_RULE_SETUP
|
|
1890
1890
|
YY_BREAK
|
1891
1891
|
case YY_STATE_EOF(_PRE):
|
1892
1892
|
#line 188 "parser.l"
|
1893
|
-
{
|
1893
|
+
{ yy_pop_state(); return PRE_END; }
|
1894
1894
|
YY_BREAK
|
1895
1895
|
case 59:
|
1896
1896
|
/* rule 59 can match eol */
|
@@ -92,10 +92,10 @@ extern size_t in_buf_len;
|
|
92
92
|
[ \t]*(\r\n|\r|\n) { return BR; }
|
93
93
|
}
|
94
94
|
|
95
|
-
\<pre>[ \t]*<code>[\r\n]* {
|
96
|
-
\<pre>[\r\n]* {
|
97
|
-
\<notextile>[\r\n]* {
|
98
|
-
\<code>[\r\n \t]* { yy_push_state(_CODE);
|
95
|
+
\<pre>[ \t]*<code>[\r\n]* { yy_push_state(_PRE_CODE); return PRE_CODE_START; }
|
96
|
+
\<pre>[\r\n]* { yy_push_state(_PRE); return PRE_START; }
|
97
|
+
\<notextile>[\r\n]* { yy_push_state(_NOTEXTILE); return NOTEXTILE_START; }
|
98
|
+
\<code>[\r\n \t]* { yy_push_state(_CODE); return CODE_START; }
|
99
99
|
|
100
100
|
^\*/[^ \t\r\n*.] { yylval.ivalue=0; yy_push_state(_BOLD); return BOLD_START; }
|
101
101
|
[ \t]+\*/[^ \t\r\n*.] { yylval.ivalue=1; yy_push_state(_BOLD); return BOLD_START; }
|
@@ -172,20 +172,20 @@ extern size_t in_buf_len;
|
|
172
172
|
. { yylval.ivalue = yytext[0]; return T_CHAR; }
|
173
173
|
}
|
174
174
|
|
175
|
-
<_NOTEXTILE>[ \t\r\n]*<\/notextile> {
|
176
|
-
<_NOTEXTILE>[ \t\r\n]*\xff {
|
175
|
+
<_NOTEXTILE>[ \t\r\n]*<\/notextile> { yy_pop_state(); return NOTEXTILE_END; }
|
176
|
+
<_NOTEXTILE>[ \t\r\n]*\xff { yy_pop_state(); return NOTEXTILE_END; }
|
177
177
|
<_NOTEXTILE>(?s:.) { yylval.ivalue = yytext[0]; return T_CHAR; }
|
178
|
-
<_NOTEXTILE><<EOF>> {
|
178
|
+
<_NOTEXTILE><<EOF>> { yy_pop_state(); return NOTEXTILE_END; }
|
179
179
|
|
180
|
-
<_PRE_CODE>[ \t\r\n]*<\/code>[ \t]*<\/pre> {
|
181
|
-
<_PRE_CODE>[ \t\r\n]*\xff {
|
180
|
+
<_PRE_CODE>[ \t\r\n]*<\/code>[ \t]*<\/pre> { yy_pop_state(); return PRE_CODE_END; }
|
181
|
+
<_PRE_CODE>[ \t\r\n]*\xff { yy_pop_state(); return PRE_CODE_END; }
|
182
182
|
<_PRE_CODE>(?s:.) { yylval.ivalue = yytext[0]; return T_CHAR; }
|
183
|
-
<_PRE_CODE><<EOF>> {
|
183
|
+
<_PRE_CODE><<EOF>> { yy_pop_state(); return PRE_CODE_END; }
|
184
184
|
|
185
|
-
<_PRE>[ \t\r\n]*<\/pre> {
|
186
|
-
<_PRE>[ \t\r\n]*\xff {
|
185
|
+
<_PRE>[ \t\r\n]*<\/pre> { yy_pop_state(); return PRE_END; }
|
186
|
+
<_PRE>[ \t\r\n]*\xff { yy_pop_state(); return PRE_END; }
|
187
187
|
<_PRE>(?s:.) { yylval.ivalue = yytext[0]; return T_CHAR; }
|
188
|
-
<_PRE><<EOF>> {
|
188
|
+
<_PRE><<EOF>> { yy_pop_state(); return PRE_END; }
|
189
189
|
|
190
190
|
<_CODE>[ \t\r\n]*<\/code> { yy_pop_state(); return CODE_END; }
|
191
191
|
<_CODE>[ \t\r\n]*\xff { yy_pop_state(); return CODE_END; }
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 17
|
9
|
+
version: 0.0.17
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Andrey "Zed" Zaikin
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-07-
|
17
|
+
date: 2010-07-27 00:00:00 +06:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|