oga 1.0.3-java → 1.1.0-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/ext/c/lexer.c +164 -181
- data/ext/java/org/liboga/xml/Lexer.java +115 -126
- data/ext/ragel/base_lexer.rl +35 -21
- data/lib/liboga.jar +0 -0
- data/lib/oga/version.rb +1 -1
- data/lib/oga/xml/attribute.rb +1 -1
- data/lib/oga/xml/entities.rb +30 -0
- data/lib/oga/xml/lexer.rb +1 -1
- data/lib/oga/xml/node.rb +21 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 282ba3e32a870a979c04e93a88a3e59268b69120
|
4
|
+
data.tar.gz: 1437bde49a01f13e7f539c265fbcc8f5bb4e8a05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48a43b264be3da16934767452ffc1dec3c582de477a447b495cdf7482e5697c852e098933517417e0b6926af5d95ffac5fa29c3b0dabe0305aa19e76abf98030
|
7
|
+
data.tar.gz: d78f5aa1d08f0fa351a0352a0fea61b859b4a46b6247805cd30692abad84924650d1e79a78dc8280997574c671d162e10efd613fed7e7325a4e341178759501c
|
data/README.md
CHANGED
@@ -206,7 +206,7 @@ can use the following:
|
|
206
206
|
|
207
207
|
descendant::*[local-name() = "bar"]
|
208
208
|
|
209
|
-
And if you want to specify an
|
209
|
+
And if you want to specify an explicit namespace URI, you can use this:
|
210
210
|
|
211
211
|
descendant::*[local-name() = "bar" and namespace-uri() = "http://example.com"]
|
212
212
|
|
data/ext/c/lexer.c
CHANGED
@@ -86,8 +86,8 @@ static const int c_lexer_en_xml_decl = 66;
|
|
86
86
|
static const int c_lexer_en_element_name = 69;
|
87
87
|
static const int c_lexer_en_element_close = 71;
|
88
88
|
static const int c_lexer_en_attribute_pre = 73;
|
89
|
-
static const int
|
90
|
-
static const int
|
89
|
+
static const int c_lexer_en_unquoted_attribute_value = 75;
|
90
|
+
static const int c_lexer_en_quoted_attribute_value = 77;
|
91
91
|
static const int c_lexer_en_element_head = 78;
|
92
92
|
static const int c_lexer_en_text = 82;
|
93
93
|
static const int c_lexer_en_html_script = 86;
|
@@ -270,7 +270,7 @@ _resume:
|
|
270
270
|
{
|
271
271
|
tr0:
|
272
272
|
( state->cs) = 32;
|
273
|
-
#line
|
273
|
+
#line 563 "ext/ragel/base_lexer.rl"
|
274
274
|
{{p = ((te))-1;}{
|
275
275
|
p--;
|
276
276
|
( state->cs) = 82;
|
@@ -296,7 +296,7 @@ tr17:
|
|
296
296
|
goto _again;
|
297
297
|
tr39:
|
298
298
|
( state->cs) = 32;
|
299
|
-
#line
|
299
|
+
#line 563 "ext/ragel/base_lexer.rl"
|
300
300
|
{te = p+1;{
|
301
301
|
p--;
|
302
302
|
( state->cs) = 82;
|
@@ -304,7 +304,7 @@ tr39:
|
|
304
304
|
goto _again;
|
305
305
|
tr41:
|
306
306
|
( state->cs) = 32;
|
307
|
-
#line
|
307
|
+
#line 563 "ext/ragel/base_lexer.rl"
|
308
308
|
{te = p;p--;{
|
309
309
|
p--;
|
310
310
|
( state->cs) = 82;
|
@@ -1591,7 +1591,7 @@ case 72:
|
|
1591
1591
|
goto tr110;
|
1592
1592
|
tr113:
|
1593
1593
|
( state->cs) = 73;
|
1594
|
-
#line
|
1594
|
+
#line 440 "ext/ragel/base_lexer.rl"
|
1595
1595
|
{te = p+1;{
|
1596
1596
|
p--;
|
1597
1597
|
|
@@ -1606,9 +1606,10 @@ tr113:
|
|
1606
1606
|
{
|
1607
1607
|
( state->cs) = 75;
|
1608
1608
|
}
|
1609
|
+
/* XML doesn't support unquoted attribute values */
|
1609
1610
|
else
|
1610
1611
|
{
|
1611
|
-
( state->cs) =
|
1612
|
+
{( state->cs) = ( state->stack)[--( state->top)];goto _again;}
|
1612
1613
|
}
|
1613
1614
|
}}
|
1614
1615
|
goto _again;
|
@@ -1617,11 +1618,27 @@ tr114:
|
|
1617
1618
|
{
|
1618
1619
|
if ( (*p) == '\n' ) lines++;
|
1619
1620
|
}
|
1620
|
-
#line
|
1621
|
+
#line 425 "ext/ragel/base_lexer.rl"
|
1621
1622
|
{te = p+1;}
|
1622
1623
|
goto st73;
|
1623
1624
|
tr116:
|
1624
|
-
|
1625
|
+
( state->cs) = 73;
|
1626
|
+
#line 427 "ext/ragel/base_lexer.rl"
|
1627
|
+
{te = p+1;{
|
1628
|
+
p--;
|
1629
|
+
|
1630
|
+
if ( lines > 0 )
|
1631
|
+
{
|
1632
|
+
advance_line(lines);
|
1633
|
+
|
1634
|
+
lines = 0;
|
1635
|
+
}
|
1636
|
+
|
1637
|
+
( state->cs) = 77;
|
1638
|
+
}}
|
1639
|
+
goto _again;
|
1640
|
+
tr117:
|
1641
|
+
#line 425 "ext/ragel/base_lexer.rl"
|
1625
1642
|
{te = p;p--;}
|
1626
1643
|
goto st73;
|
1627
1644
|
st73:
|
@@ -1632,10 +1649,12 @@ st73:
|
|
1632
1649
|
case 73:
|
1633
1650
|
#line 1 "NONE"
|
1634
1651
|
{ts = p;}
|
1635
|
-
#line
|
1652
|
+
#line 1653 "ext/c/lexer.c"
|
1636
1653
|
switch( (*p) ) {
|
1637
1654
|
case 13: goto tr115;
|
1638
1655
|
case 32: goto tr114;
|
1656
|
+
case 34: goto tr116;
|
1657
|
+
case 39: goto tr116;
|
1639
1658
|
}
|
1640
1659
|
if ( 9 <= (*p) && (*p) <= 10 )
|
1641
1660
|
goto tr114;
|
@@ -1650,45 +1669,26 @@ st74:
|
|
1650
1669
|
if ( ++p == pe )
|
1651
1670
|
goto _test_eof74;
|
1652
1671
|
case 74:
|
1653
|
-
#line
|
1672
|
+
#line 1673 "ext/c/lexer.c"
|
1654
1673
|
if ( (*p) == 10 )
|
1655
1674
|
goto tr114;
|
1656
|
-
goto
|
1657
|
-
|
1675
|
+
goto tr117;
|
1676
|
+
tr119:
|
1658
1677
|
#line 64 "ext/ragel/base_lexer.rl"
|
1659
1678
|
{te = p+1;{
|
1660
1679
|
p--;
|
1661
1680
|
{( state->cs) = ( state->stack)[--( state->top)];goto _again;}
|
1662
1681
|
}}
|
1663
1682
|
goto st75;
|
1664
|
-
tr119:
|
1665
|
-
( state->cs) = 75;
|
1666
|
-
#line 457 "ext/ragel/base_lexer.rl"
|
1667
|
-
{te = p+1;{
|
1668
|
-
p--;
|
1669
|
-
( state->cs) = 77;
|
1670
|
-
}}
|
1671
|
-
goto _again;
|
1672
1683
|
tr120:
|
1673
|
-
#line
|
1674
|
-
{
|
1675
|
-
case 35:
|
1676
|
-
{{p = ((te))-1;}
|
1684
|
+
#line 478 "ext/ragel/base_lexer.rl"
|
1685
|
+
{te = p;p--;{
|
1677
1686
|
callback_simple(id_on_string_squote);
|
1678
1687
|
|
1679
1688
|
callback(id_on_string_body, data, encoding, ts, te);
|
1680
1689
|
|
1681
1690
|
callback_simple(id_on_string_squote);
|
1682
|
-
}
|
1683
|
-
break;
|
1684
|
-
case 36:
|
1685
|
-
{{p = ((te))-1;}
|
1686
|
-
p--;
|
1687
|
-
{( state->cs) = ( state->stack)[--( state->top)];goto _again;}
|
1688
|
-
}
|
1689
|
-
break;
|
1690
|
-
}
|
1691
|
-
}
|
1691
|
+
}}
|
1692
1692
|
goto st75;
|
1693
1693
|
st75:
|
1694
1694
|
#line 1 "NONE"
|
@@ -1700,61 +1700,44 @@ case 75:
|
|
1700
1700
|
{ts = p;}
|
1701
1701
|
#line 1702 "ext/c/lexer.c"
|
1702
1702
|
switch( (*p) ) {
|
1703
|
-
case 13: goto
|
1704
|
-
case 32: goto
|
1705
|
-
case
|
1706
|
-
case 39: goto tr119;
|
1703
|
+
case 13: goto tr119;
|
1704
|
+
case 32: goto tr119;
|
1705
|
+
case 62: goto tr119;
|
1707
1706
|
}
|
1708
1707
|
if ( 9 <= (*p) && (*p) <= 10 )
|
1709
|
-
goto
|
1710
|
-
goto tr117;
|
1711
|
-
tr117:
|
1712
|
-
#line 1 "NONE"
|
1713
|
-
{te = p+1;}
|
1714
|
-
#line 64 "ext/ragel/base_lexer.rl"
|
1715
|
-
{( state->act) = 36;}
|
1716
|
-
goto st76;
|
1717
|
-
tr121:
|
1718
|
-
#line 1 "NONE"
|
1719
|
-
{te = p+1;}
|
1720
|
-
#line 464 "ext/ragel/base_lexer.rl"
|
1721
|
-
{( state->act) = 35;}
|
1708
|
+
goto tr119;
|
1722
1709
|
goto st76;
|
1723
1710
|
st76:
|
1724
1711
|
if ( ++p == pe )
|
1725
1712
|
goto _test_eof76;
|
1726
1713
|
case 76:
|
1727
|
-
#line 1728 "ext/c/lexer.c"
|
1728
1714
|
switch( (*p) ) {
|
1729
1715
|
case 13: goto tr120;
|
1730
1716
|
case 32: goto tr120;
|
1731
|
-
case
|
1717
|
+
case 62: goto tr120;
|
1732
1718
|
}
|
1733
|
-
if ( (*p)
|
1734
|
-
if ( 60 <= (*p) && (*p) <= 62 )
|
1735
|
-
goto tr120;
|
1736
|
-
} else if ( (*p) >= 9 )
|
1719
|
+
if ( 9 <= (*p) && (*p) <= 10 )
|
1737
1720
|
goto tr120;
|
1738
|
-
goto
|
1739
|
-
|
1721
|
+
goto st76;
|
1722
|
+
tr121:
|
1740
1723
|
#line 64 "ext/ragel/base_lexer.rl"
|
1741
1724
|
{te = p+1;{
|
1742
1725
|
p--;
|
1743
1726
|
{( state->cs) = ( state->stack)[--( state->top)];goto _again;}
|
1744
1727
|
}}
|
1745
1728
|
goto st77;
|
1746
|
-
|
1729
|
+
tr122:
|
1747
1730
|
( state->cs) = 77;
|
1748
|
-
#line
|
1731
|
+
#line 500 "ext/ragel/base_lexer.rl"
|
1749
1732
|
{te = p+1;{
|
1750
1733
|
callback_simple(id_on_string_dquote);
|
1751
1734
|
|
1752
1735
|
( state->cs) = 49;
|
1753
1736
|
}}
|
1754
1737
|
goto _again;
|
1755
|
-
|
1738
|
+
tr123:
|
1756
1739
|
( state->cs) = 77;
|
1757
|
-
#line
|
1740
|
+
#line 494 "ext/ragel/base_lexer.rl"
|
1758
1741
|
{te = p+1;{
|
1759
1742
|
callback_simple(id_on_string_squote);
|
1760
1743
|
|
@@ -1769,31 +1752,31 @@ st77:
|
|
1769
1752
|
case 77:
|
1770
1753
|
#line 1 "NONE"
|
1771
1754
|
{ts = p;}
|
1772
|
-
#line
|
1755
|
+
#line 1756 "ext/c/lexer.c"
|
1773
1756
|
switch( (*p) ) {
|
1774
|
-
case 34: goto
|
1775
|
-
case 39: goto
|
1757
|
+
case 34: goto tr122;
|
1758
|
+
case 39: goto tr123;
|
1776
1759
|
}
|
1777
|
-
goto
|
1778
|
-
|
1779
|
-
#line
|
1760
|
+
goto tr121;
|
1761
|
+
tr124:
|
1762
|
+
#line 552 "ext/ragel/base_lexer.rl"
|
1780
1763
|
{te = p+1;}
|
1781
1764
|
goto st78;
|
1782
|
-
|
1765
|
+
tr125:
|
1783
1766
|
#line 60 "ext/ragel/base_lexer.rl"
|
1784
1767
|
{te = p+1;{
|
1785
1768
|
advance_line(1);
|
1786
1769
|
}}
|
1787
1770
|
goto st78;
|
1788
|
-
|
1789
|
-
#line
|
1771
|
+
tr129:
|
1772
|
+
#line 524 "ext/ragel/base_lexer.rl"
|
1790
1773
|
{te = p+1;{
|
1791
1774
|
{( state->stack)[( state->top)++] = 78; goto st73;}
|
1792
1775
|
}}
|
1793
1776
|
goto st78;
|
1794
|
-
|
1777
|
+
tr130:
|
1795
1778
|
( state->cs) = 78;
|
1796
|
-
#line
|
1779
|
+
#line 529 "ext/ragel/base_lexer.rl"
|
1797
1780
|
{te = p+1;{
|
1798
1781
|
callback_simple(id_on_element_open_end);
|
1799
1782
|
|
@@ -1811,31 +1794,31 @@ tr131:
|
|
1811
1794
|
}
|
1812
1795
|
}}
|
1813
1796
|
goto _again;
|
1814
|
-
|
1797
|
+
tr131:
|
1815
1798
|
#line 60 "ext/ragel/base_lexer.rl"
|
1816
1799
|
{te = p;p--;{
|
1817
1800
|
advance_line(1);
|
1818
1801
|
}}
|
1819
1802
|
goto st78;
|
1820
|
-
|
1821
|
-
#line
|
1803
|
+
tr132:
|
1804
|
+
#line 519 "ext/ragel/base_lexer.rl"
|
1822
1805
|
{te = p;p--;{
|
1823
1806
|
callback(id_on_attribute, data, encoding, ts, te);
|
1824
1807
|
}}
|
1825
1808
|
goto st78;
|
1826
|
-
|
1827
|
-
#line
|
1809
|
+
tr133:
|
1810
|
+
#line 515 "ext/ragel/base_lexer.rl"
|
1828
1811
|
{te = p+1;{
|
1829
1812
|
callback(id_on_attribute_ns, data, encoding, ts, te - 1);
|
1830
1813
|
}}
|
1831
1814
|
goto st78;
|
1832
|
-
|
1833
|
-
#line
|
1815
|
+
tr134:
|
1816
|
+
#line 552 "ext/ragel/base_lexer.rl"
|
1834
1817
|
{te = p;p--;}
|
1835
1818
|
goto st78;
|
1836
|
-
|
1819
|
+
tr135:
|
1837
1820
|
( state->cs) = 78;
|
1838
|
-
#line
|
1821
|
+
#line 547 "ext/ragel/base_lexer.rl"
|
1839
1822
|
{te = p+1;{
|
1840
1823
|
callback_simple(id_on_element_end);
|
1841
1824
|
( state->cs) = 32;
|
@@ -1849,14 +1832,14 @@ st78:
|
|
1849
1832
|
case 78:
|
1850
1833
|
#line 1 "NONE"
|
1851
1834
|
{ts = p;}
|
1852
|
-
#line
|
1835
|
+
#line 1836 "ext/c/lexer.c"
|
1853
1836
|
switch( (*p) ) {
|
1854
|
-
case 10: goto
|
1837
|
+
case 10: goto tr125;
|
1855
1838
|
case 13: goto st79;
|
1856
1839
|
case 45: goto st80;
|
1857
1840
|
case 47: goto st81;
|
1858
|
-
case 61: goto
|
1859
|
-
case 62: goto
|
1841
|
+
case 61: goto tr129;
|
1842
|
+
case 62: goto tr130;
|
1860
1843
|
case 95: goto st80;
|
1861
1844
|
}
|
1862
1845
|
if ( (*p) < 65 ) {
|
@@ -1867,21 +1850,21 @@ case 78:
|
|
1867
1850
|
goto st80;
|
1868
1851
|
} else
|
1869
1852
|
goto st80;
|
1870
|
-
goto
|
1853
|
+
goto tr124;
|
1871
1854
|
st79:
|
1872
1855
|
if ( ++p == pe )
|
1873
1856
|
goto _test_eof79;
|
1874
1857
|
case 79:
|
1875
1858
|
if ( (*p) == 10 )
|
1876
|
-
goto
|
1877
|
-
goto
|
1859
|
+
goto tr125;
|
1860
|
+
goto tr131;
|
1878
1861
|
st80:
|
1879
1862
|
if ( ++p == pe )
|
1880
1863
|
goto _test_eof80;
|
1881
1864
|
case 80:
|
1882
1865
|
switch( (*p) ) {
|
1883
1866
|
case 45: goto st80;
|
1884
|
-
case 58: goto
|
1867
|
+
case 58: goto tr133;
|
1885
1868
|
case 95: goto st80;
|
1886
1869
|
}
|
1887
1870
|
if ( (*p) < 65 ) {
|
@@ -1892,17 +1875,17 @@ case 80:
|
|
1892
1875
|
goto st80;
|
1893
1876
|
} else
|
1894
1877
|
goto st80;
|
1895
|
-
goto
|
1878
|
+
goto tr132;
|
1896
1879
|
st81:
|
1897
1880
|
if ( ++p == pe )
|
1898
1881
|
goto _test_eof81;
|
1899
1882
|
case 81:
|
1900
1883
|
if ( (*p) == 62 )
|
1901
|
-
goto
|
1902
|
-
goto
|
1903
|
-
|
1884
|
+
goto tr135;
|
1885
|
+
goto tr134;
|
1886
|
+
tr138:
|
1904
1887
|
( state->cs) = 82;
|
1905
|
-
#line
|
1888
|
+
#line 589 "ext/ragel/base_lexer.rl"
|
1906
1889
|
{te = p;p--;{
|
1907
1890
|
callback(id_on_text, data, encoding, ts, te);
|
1908
1891
|
|
@@ -1916,9 +1899,9 @@ tr139:
|
|
1916
1899
|
( state->cs) = 32;
|
1917
1900
|
}}
|
1918
1901
|
goto _again;
|
1919
|
-
|
1902
|
+
tr140:
|
1920
1903
|
( state->cs) = 82;
|
1921
|
-
#line
|
1904
|
+
#line 603 "ext/ragel/base_lexer.rl"
|
1922
1905
|
{te = p+1;{
|
1923
1906
|
callback(id_on_text, data, encoding, ts, mark);
|
1924
1907
|
|
@@ -1935,9 +1918,9 @@ tr141:
|
|
1935
1918
|
( state->cs) = 32;
|
1936
1919
|
}}
|
1937
1920
|
goto _again;
|
1938
|
-
|
1921
|
+
tr141:
|
1939
1922
|
( state->cs) = 82;
|
1940
|
-
#line
|
1923
|
+
#line 589 "ext/ragel/base_lexer.rl"
|
1941
1924
|
{te = p+1;{
|
1942
1925
|
callback(id_on_text, data, encoding, ts, te);
|
1943
1926
|
|
@@ -1959,11 +1942,11 @@ st82:
|
|
1959
1942
|
case 82:
|
1960
1943
|
#line 1 "NONE"
|
1961
1944
|
{ts = p;}
|
1962
|
-
#line
|
1945
|
+
#line 1946 "ext/c/lexer.c"
|
1963
1946
|
if ( (*p) == 60 )
|
1964
|
-
goto
|
1965
|
-
goto
|
1966
|
-
|
1947
|
+
goto tr137;
|
1948
|
+
goto tr136;
|
1949
|
+
tr136:
|
1967
1950
|
#line 56 "ext/ragel/base_lexer.rl"
|
1968
1951
|
{
|
1969
1952
|
if ( (*p) == '\n' ) lines++;
|
@@ -1973,70 +1956,70 @@ st83:
|
|
1973
1956
|
if ( ++p == pe )
|
1974
1957
|
goto _test_eof83;
|
1975
1958
|
case 83:
|
1976
|
-
#line
|
1959
|
+
#line 1960 "ext/c/lexer.c"
|
1977
1960
|
if ( (*p) == 60 )
|
1978
|
-
goto
|
1979
|
-
goto
|
1980
|
-
|
1961
|
+
goto tr139;
|
1962
|
+
goto tr136;
|
1963
|
+
tr139:
|
1981
1964
|
#line 56 "ext/ragel/base_lexer.rl"
|
1982
1965
|
{
|
1983
1966
|
if ( (*p) == '\n' ) lines++;
|
1984
1967
|
}
|
1985
|
-
#line
|
1968
|
+
#line 603 "ext/ragel/base_lexer.rl"
|
1986
1969
|
{ mark = p; }
|
1987
1970
|
goto st84;
|
1988
1971
|
st84:
|
1989
1972
|
if ( ++p == pe )
|
1990
1973
|
goto _test_eof84;
|
1991
1974
|
case 84:
|
1992
|
-
#line
|
1975
|
+
#line 1976 "ext/c/lexer.c"
|
1993
1976
|
switch( (*p) ) {
|
1994
|
-
case 33: goto
|
1995
|
-
case 45: goto
|
1996
|
-
case 60: goto
|
1997
|
-
case 63: goto
|
1998
|
-
case 95: goto
|
1977
|
+
case 33: goto tr140;
|
1978
|
+
case 45: goto tr140;
|
1979
|
+
case 60: goto tr139;
|
1980
|
+
case 63: goto tr140;
|
1981
|
+
case 95: goto tr140;
|
1999
1982
|
}
|
2000
1983
|
if ( (*p) < 65 ) {
|
2001
1984
|
if ( 47 <= (*p) && (*p) <= 57 )
|
2002
|
-
goto
|
1985
|
+
goto tr140;
|
2003
1986
|
} else if ( (*p) > 90 ) {
|
2004
1987
|
if ( 97 <= (*p) && (*p) <= 122 )
|
2005
|
-
goto
|
1988
|
+
goto tr140;
|
2006
1989
|
} else
|
2007
|
-
goto
|
2008
|
-
goto
|
2009
|
-
|
1990
|
+
goto tr140;
|
1991
|
+
goto tr136;
|
1992
|
+
tr137:
|
2010
1993
|
#line 56 "ext/ragel/base_lexer.rl"
|
2011
1994
|
{
|
2012
1995
|
if ( (*p) == '\n' ) lines++;
|
2013
1996
|
}
|
2014
|
-
#line
|
1997
|
+
#line 603 "ext/ragel/base_lexer.rl"
|
2015
1998
|
{ mark = p; }
|
2016
1999
|
goto st85;
|
2017
2000
|
st85:
|
2018
2001
|
if ( ++p == pe )
|
2019
2002
|
goto _test_eof85;
|
2020
2003
|
case 85:
|
2021
|
-
#line
|
2004
|
+
#line 2005 "ext/c/lexer.c"
|
2022
2005
|
switch( (*p) ) {
|
2023
|
-
case 33: goto
|
2024
|
-
case 45: goto
|
2025
|
-
case 60: goto
|
2026
|
-
case 63: goto
|
2027
|
-
case 95: goto
|
2006
|
+
case 33: goto tr141;
|
2007
|
+
case 45: goto tr141;
|
2008
|
+
case 60: goto tr139;
|
2009
|
+
case 63: goto tr141;
|
2010
|
+
case 95: goto tr141;
|
2028
2011
|
}
|
2029
2012
|
if ( (*p) < 65 ) {
|
2030
2013
|
if ( 47 <= (*p) && (*p) <= 57 )
|
2031
|
-
goto
|
2014
|
+
goto tr141;
|
2032
2015
|
} else if ( (*p) > 90 ) {
|
2033
2016
|
if ( 97 <= (*p) && (*p) <= 122 )
|
2034
|
-
goto
|
2017
|
+
goto tr141;
|
2035
2018
|
} else
|
2036
|
-
goto
|
2037
|
-
goto
|
2019
|
+
goto tr141;
|
2020
|
+
goto tr136;
|
2038
2021
|
tr24:
|
2039
|
-
#line
|
2022
|
+
#line 577 "ext/ragel/base_lexer.rl"
|
2040
2023
|
{{p = ((te))-1;}{
|
2041
2024
|
callback(id_on_text, data, encoding, ts, te);
|
2042
2025
|
|
@@ -2057,8 +2040,8 @@ tr31:
|
|
2057
2040
|
( state->cs) = 32;
|
2058
2041
|
}}
|
2059
2042
|
goto _again;
|
2060
|
-
|
2061
|
-
#line
|
2043
|
+
tr144:
|
2044
|
+
#line 577 "ext/ragel/base_lexer.rl"
|
2062
2045
|
{te = p;p--;{
|
2063
2046
|
callback(id_on_text, data, encoding, ts, te);
|
2064
2047
|
|
@@ -2078,11 +2061,11 @@ st86:
|
|
2078
2061
|
case 86:
|
2079
2062
|
#line 1 "NONE"
|
2080
2063
|
{ts = p;}
|
2081
|
-
#line
|
2064
|
+
#line 2065 "ext/c/lexer.c"
|
2082
2065
|
if ( (*p) == 60 )
|
2083
|
-
goto
|
2084
|
-
goto
|
2085
|
-
|
2066
|
+
goto tr143;
|
2067
|
+
goto tr142;
|
2068
|
+
tr142:
|
2086
2069
|
#line 56 "ext/ragel/base_lexer.rl"
|
2087
2070
|
{
|
2088
2071
|
if ( (*p) == '\n' ) lines++;
|
@@ -2092,11 +2075,11 @@ st87:
|
|
2092
2075
|
if ( ++p == pe )
|
2093
2076
|
goto _test_eof87;
|
2094
2077
|
case 87:
|
2095
|
-
#line
|
2078
|
+
#line 2079 "ext/c/lexer.c"
|
2096
2079
|
if ( (*p) == 60 )
|
2097
|
-
goto
|
2098
|
-
goto
|
2099
|
-
|
2080
|
+
goto tr144;
|
2081
|
+
goto tr142;
|
2082
|
+
tr143:
|
2100
2083
|
#line 1 "NONE"
|
2101
2084
|
{te = p+1;}
|
2102
2085
|
#line 56 "ext/ragel/base_lexer.rl"
|
@@ -2108,12 +2091,12 @@ st88:
|
|
2108
2091
|
if ( ++p == pe )
|
2109
2092
|
goto _test_eof88;
|
2110
2093
|
case 88:
|
2111
|
-
#line
|
2094
|
+
#line 2095 "ext/c/lexer.c"
|
2112
2095
|
switch( (*p) ) {
|
2113
2096
|
case 47: goto st19;
|
2114
|
-
case 60: goto
|
2097
|
+
case 60: goto tr146;
|
2115
2098
|
}
|
2116
|
-
goto
|
2099
|
+
goto tr144;
|
2117
2100
|
st19:
|
2118
2101
|
if ( ++p == pe )
|
2119
2102
|
goto _test_eof19;
|
@@ -2163,7 +2146,7 @@ case 25:
|
|
2163
2146
|
if ( (*p) == 62 )
|
2164
2147
|
goto tr31;
|
2165
2148
|
goto tr24;
|
2166
|
-
|
2149
|
+
tr146:
|
2167
2150
|
#line 56 "ext/ragel/base_lexer.rl"
|
2168
2151
|
{
|
2169
2152
|
if ( (*p) == '\n' ) lines++;
|
@@ -2173,12 +2156,12 @@ st89:
|
|
2173
2156
|
if ( ++p == pe )
|
2174
2157
|
goto _test_eof89;
|
2175
2158
|
case 89:
|
2176
|
-
#line
|
2159
|
+
#line 2160 "ext/c/lexer.c"
|
2177
2160
|
if ( (*p) == 60 )
|
2178
|
-
goto
|
2179
|
-
goto
|
2161
|
+
goto tr146;
|
2162
|
+
goto tr144;
|
2180
2163
|
tr32:
|
2181
|
-
#line
|
2164
|
+
#line 577 "ext/ragel/base_lexer.rl"
|
2182
2165
|
{{p = ((te))-1;}{
|
2183
2166
|
callback(id_on_text, data, encoding, ts, te);
|
2184
2167
|
|
@@ -2199,8 +2182,8 @@ tr38:
|
|
2199
2182
|
( state->cs) = 32;
|
2200
2183
|
}}
|
2201
2184
|
goto _again;
|
2202
|
-
|
2203
|
-
#line
|
2185
|
+
tr149:
|
2186
|
+
#line 577 "ext/ragel/base_lexer.rl"
|
2204
2187
|
{te = p;p--;{
|
2205
2188
|
callback(id_on_text, data, encoding, ts, te);
|
2206
2189
|
|
@@ -2220,11 +2203,11 @@ st90:
|
|
2220
2203
|
case 90:
|
2221
2204
|
#line 1 "NONE"
|
2222
2205
|
{ts = p;}
|
2223
|
-
#line
|
2206
|
+
#line 2207 "ext/c/lexer.c"
|
2224
2207
|
if ( (*p) == 60 )
|
2225
|
-
goto
|
2226
|
-
goto
|
2227
|
-
|
2208
|
+
goto tr148;
|
2209
|
+
goto tr147;
|
2210
|
+
tr147:
|
2228
2211
|
#line 56 "ext/ragel/base_lexer.rl"
|
2229
2212
|
{
|
2230
2213
|
if ( (*p) == '\n' ) lines++;
|
@@ -2234,11 +2217,11 @@ st91:
|
|
2234
2217
|
if ( ++p == pe )
|
2235
2218
|
goto _test_eof91;
|
2236
2219
|
case 91:
|
2237
|
-
#line
|
2220
|
+
#line 2221 "ext/c/lexer.c"
|
2238
2221
|
if ( (*p) == 60 )
|
2239
|
-
goto
|
2240
|
-
goto
|
2241
|
-
|
2222
|
+
goto tr149;
|
2223
|
+
goto tr147;
|
2224
|
+
tr148:
|
2242
2225
|
#line 1 "NONE"
|
2243
2226
|
{te = p+1;}
|
2244
2227
|
#line 56 "ext/ragel/base_lexer.rl"
|
@@ -2250,12 +2233,12 @@ st92:
|
|
2250
2233
|
if ( ++p == pe )
|
2251
2234
|
goto _test_eof92;
|
2252
2235
|
case 92:
|
2253
|
-
#line
|
2236
|
+
#line 2237 "ext/c/lexer.c"
|
2254
2237
|
switch( (*p) ) {
|
2255
2238
|
case 47: goto st26;
|
2256
|
-
case 60: goto
|
2239
|
+
case 60: goto tr151;
|
2257
2240
|
}
|
2258
|
-
goto
|
2241
|
+
goto tr149;
|
2259
2242
|
st26:
|
2260
2243
|
if ( ++p == pe )
|
2261
2244
|
goto _test_eof26;
|
@@ -2298,7 +2281,7 @@ case 31:
|
|
2298
2281
|
if ( (*p) == 62 )
|
2299
2282
|
goto tr38;
|
2300
2283
|
goto tr32;
|
2301
|
-
|
2284
|
+
tr151:
|
2302
2285
|
#line 56 "ext/ragel/base_lexer.rl"
|
2303
2286
|
{
|
2304
2287
|
if ( (*p) == '\n' ) lines++;
|
@@ -2308,10 +2291,10 @@ st93:
|
|
2308
2291
|
if ( ++p == pe )
|
2309
2292
|
goto _test_eof93;
|
2310
2293
|
case 93:
|
2311
|
-
#line
|
2294
|
+
#line 2295 "ext/c/lexer.c"
|
2312
2295
|
if ( (*p) == 60 )
|
2313
|
-
goto
|
2314
|
-
goto
|
2296
|
+
goto tr151;
|
2297
|
+
goto tr149;
|
2315
2298
|
}
|
2316
2299
|
_test_eof32: ( state->cs) = 32; goto _test_eof;
|
2317
2300
|
_test_eof33: ( state->cs) = 33; goto _test_eof;
|
@@ -2459,16 +2442,16 @@ case 93:
|
|
2459
2442
|
case 68: goto tr102;
|
2460
2443
|
case 70: goto tr105;
|
2461
2444
|
case 72: goto tr110;
|
2462
|
-
case 74: goto
|
2445
|
+
case 74: goto tr117;
|
2463
2446
|
case 76: goto tr120;
|
2464
|
-
case 79: goto
|
2465
|
-
case 80: goto
|
2466
|
-
case 81: goto
|
2467
|
-
case 83: goto
|
2468
|
-
case 84: goto
|
2469
|
-
case 85: goto
|
2470
|
-
case 87: goto
|
2471
|
-
case 88: goto
|
2447
|
+
case 79: goto tr131;
|
2448
|
+
case 80: goto tr132;
|
2449
|
+
case 81: goto tr134;
|
2450
|
+
case 83: goto tr138;
|
2451
|
+
case 84: goto tr138;
|
2452
|
+
case 85: goto tr138;
|
2453
|
+
case 87: goto tr144;
|
2454
|
+
case 88: goto tr144;
|
2472
2455
|
case 19: goto tr24;
|
2473
2456
|
case 20: goto tr24;
|
2474
2457
|
case 21: goto tr24;
|
@@ -2476,16 +2459,16 @@ case 93:
|
|
2476
2459
|
case 23: goto tr24;
|
2477
2460
|
case 24: goto tr24;
|
2478
2461
|
case 25: goto tr24;
|
2479
|
-
case 89: goto
|
2480
|
-
case 91: goto
|
2481
|
-
case 92: goto
|
2462
|
+
case 89: goto tr144;
|
2463
|
+
case 91: goto tr149;
|
2464
|
+
case 92: goto tr149;
|
2482
2465
|
case 26: goto tr32;
|
2483
2466
|
case 27: goto tr32;
|
2484
2467
|
case 28: goto tr32;
|
2485
2468
|
case 29: goto tr32;
|
2486
2469
|
case 30: goto tr32;
|
2487
2470
|
case 31: goto tr32;
|
2488
|
-
case 93: goto
|
2471
|
+
case 93: goto tr149;
|
2489
2472
|
}
|
2490
2473
|
}
|
2491
2474
|
|