|
@@ 1682-1732 (lines=51) @@
|
| 1679 |
|
// $ANTLR end "ID" |
| 1680 |
|
|
| 1681 |
|
// $ANTLR start "VarID" |
| 1682 |
|
public final void mVarID() throws RecognitionException { |
| 1683 |
|
try { |
| 1684 |
|
int _type = VarID; |
| 1685 |
|
int _channel = DEFAULT_TOKEN_CHANNEL; |
| 1686 |
|
// /home/alessandro/opt/antlr/ddl3/ddl3.g:195:7: ( '?' ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '-' | '@' )* ) |
| 1687 |
|
// /home/alessandro/opt/antlr/ddl3/ddl3.g:195:9: '?' ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '-' | '@' )* |
| 1688 |
|
{ |
| 1689 |
|
match('?'); |
| 1690 |
|
if ( (input.LA(1) >= 'A' && input.LA(1) <= 'Z')||input.LA(1)=='_'||(input.LA(1) >= 'a' && input.LA(1) <= 'z') ) { |
| 1691 |
|
input.consume(); |
| 1692 |
|
} |
| 1693 |
|
else { |
| 1694 |
|
MismatchedSetException mse = new MismatchedSetException(null,input); |
| 1695 |
|
recover(mse); |
| 1696 |
|
throw mse; |
| 1697 |
|
} |
| 1698 |
|
// /home/alessandro/opt/antlr/ddl3/ddl3.g:195:37: ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '-' | '@' )* |
| 1699 |
|
loop2: |
| 1700 |
|
while (true) { |
| 1701 |
|
int alt2=2; |
| 1702 |
|
int LA2_0 = input.LA(1); |
| 1703 |
|
if ( (LA2_0=='-'||(LA2_0 >= '0' && LA2_0 <= '9')||(LA2_0 >= '@' && LA2_0 <= 'Z')||LA2_0=='_'||(LA2_0 >= 'a' && LA2_0 <= 'z')) ) { |
| 1704 |
|
alt2=1; |
| 1705 |
|
} |
| 1706 |
|
|
| 1707 |
|
switch (alt2) { |
| 1708 |
|
case 1 : |
| 1709 |
|
// /home/alessandro/opt/antlr/ddl3/ddl3.g: |
| 1710 |
|
{ |
| 1711 |
|
if ( input.LA(1)=='-'||(input.LA(1) >= '0' && input.LA(1) <= '9')||(input.LA(1) >= '@' && input.LA(1) <= 'Z')||input.LA(1)=='_'||(input.LA(1) >= 'a' && input.LA(1) <= 'z') ) { |
| 1712 |
|
input.consume(); |
| 1713 |
|
} |
| 1714 |
|
else { |
| 1715 |
|
MismatchedSetException mse = new MismatchedSetException(null,input); |
| 1716 |
|
recover(mse); |
| 1717 |
|
throw mse; |
| 1718 |
|
} |
| 1719 |
|
} |
| 1720 |
|
break; |
| 1721 |
|
|
| 1722 |
|
default : |
| 1723 |
|
break loop2; |
| 1724 |
|
} |
| 1725 |
|
} |
| 1726 |
|
|
| 1727 |
|
} |
| 1728 |
|
|
| 1729 |
|
state.type = _type; |
| 1730 |
|
state.channel = _channel; |
| 1731 |
|
} |
| 1732 |
|
finally { |
| 1733 |
|
// do for sure before leaving |
| 1734 |
|
} |
| 1735 |
|
} |
|
@@ 1626-1675 (lines=50) @@
|
| 1623 |
|
// $ANTLR end "T__81" |
| 1624 |
|
|
| 1625 |
|
// $ANTLR start "ID" |
| 1626 |
|
public final void mID() throws RecognitionException { |
| 1627 |
|
try { |
| 1628 |
|
int _type = ID; |
| 1629 |
|
int _channel = DEFAULT_TOKEN_CHANNEL; |
| 1630 |
|
// /home/alessandro/opt/antlr/ddl3/ddl3.g:193:4: ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '-' | '@' )* ) |
| 1631 |
|
// /home/alessandro/opt/antlr/ddl3/ddl3.g:193:6: ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '-' | '@' )* |
| 1632 |
|
{ |
| 1633 |
|
if ( (input.LA(1) >= 'A' && input.LA(1) <= 'Z')||input.LA(1)=='_'||(input.LA(1) >= 'a' && input.LA(1) <= 'z') ) { |
| 1634 |
|
input.consume(); |
| 1635 |
|
} |
| 1636 |
|
else { |
| 1637 |
|
MismatchedSetException mse = new MismatchedSetException(null,input); |
| 1638 |
|
recover(mse); |
| 1639 |
|
throw mse; |
| 1640 |
|
} |
| 1641 |
|
// /home/alessandro/opt/antlr/ddl3/ddl3.g:193:30: ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '-' | '@' )* |
| 1642 |
|
loop1: |
| 1643 |
|
while (true) { |
| 1644 |
|
int alt1=2; |
| 1645 |
|
int LA1_0 = input.LA(1); |
| 1646 |
|
if ( (LA1_0=='-'||(LA1_0 >= '0' && LA1_0 <= '9')||(LA1_0 >= '@' && LA1_0 <= 'Z')||LA1_0=='_'||(LA1_0 >= 'a' && LA1_0 <= 'z')) ) { |
| 1647 |
|
alt1=1; |
| 1648 |
|
} |
| 1649 |
|
|
| 1650 |
|
switch (alt1) { |
| 1651 |
|
case 1 : |
| 1652 |
|
// /home/alessandro/opt/antlr/ddl3/ddl3.g: |
| 1653 |
|
{ |
| 1654 |
|
if ( input.LA(1)=='-'||(input.LA(1) >= '0' && input.LA(1) <= '9')||(input.LA(1) >= '@' && input.LA(1) <= 'Z')||input.LA(1)=='_'||(input.LA(1) >= 'a' && input.LA(1) <= 'z') ) { |
| 1655 |
|
input.consume(); |
| 1656 |
|
} |
| 1657 |
|
else { |
| 1658 |
|
MismatchedSetException mse = new MismatchedSetException(null,input); |
| 1659 |
|
recover(mse); |
| 1660 |
|
throw mse; |
| 1661 |
|
} |
| 1662 |
|
} |
| 1663 |
|
break; |
| 1664 |
|
|
| 1665 |
|
default : |
| 1666 |
|
break loop1; |
| 1667 |
|
} |
| 1668 |
|
} |
| 1669 |
|
|
| 1670 |
|
} |
| 1671 |
|
|
| 1672 |
|
state.type = _type; |
| 1673 |
|
state.channel = _channel; |
| 1674 |
|
} |
| 1675 |
|
finally { |
| 1676 |
|
// do for sure before leaving |
| 1677 |
|
} |
| 1678 |
|
} |