public final Output_variable_typeContext output_variable_type() throws RecognitionException {
Output_variable_typeContext _localctx = new Output_variable_typeContext(_ctx, getState());
enterRule(_localctx, 82, RULE_output_variable_type);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(1297);
_la = _input.LA(1);
if ( !(_la==T__25 || _la==T__28) ) {
_errHandler.recoverInline(this);
} else {
consume();
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
java类org.antlr.v4.runtime.RecognitionException的实例源码
Verilog2001Parser.java 文件源码
项目:netlist-graph
阅读 21
收藏 0
点赞 0
评论 0
Verilog2001Parser.java 文件源码
项目:netlist-graph
阅读 23
收藏 0
点赞 0
评论 0
public final T0x_path_delay_expressionContext t0x_path_delay_expression() throws RecognitionException {
T0x_path_delay_expressionContext _localctx = new T0x_path_delay_expressionContext(_ctx, getState());
enterRule(_localctx, 388, RULE_t0x_path_delay_expression);
try {
enterOuterAlt(_localctx, 1);
{
setState(3167);
path_delay_expression();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
Verilog2001Parser.java 文件源码
项目:netlist-graph
阅读 25
收藏 0
点赞 0
评论 0
public final Module_path_multiple_concatenationContext module_path_multiple_concatenation() throws RecognitionException {
Module_path_multiple_concatenationContext _localctx = new Module_path_multiple_concatenationContext(_ctx, getState());
enterRule(_localctx, 446, RULE_module_path_multiple_concatenation);
try {
enterOuterAlt(_localctx, 1);
{
setState(3313);
match(T__18);
setState(3314);
constant_expression();
setState(3315);
module_path_concatenation();
setState(3316);
match(T__19);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
Verilog2001Parser.java 文件源码
项目:netlist-graph
阅读 26
收藏 0
点赞 0
评论 0
public final Pass_en_switchtypeContext pass_en_switchtype() throws RecognitionException {
Pass_en_switchtypeContext _localctx = new Pass_en_switchtypeContext(_ctx, getState());
enterRule(_localctx, 218, RULE_pass_en_switchtype);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(2137);
_la = _input.LA(1);
if ( !(((((_la - 91)) & ~0x3f) == 0 && ((1L << (_la - 91)) & ((1L << (T__90 - 91)) | (1L << (T__91 - 91)) | (1L << (T__92 - 91)) | (1L << (T__93 - 91)))) != 0)) ) {
_errHandler.recoverInline(this);
} else {
consume();
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
Verilog2001Parser.java 文件源码
项目:netlist-graph
阅读 25
收藏 0
点赞 0
评论 0
public final Real_declarationContext real_declaration() throws RecognitionException {
Real_declarationContext _localctx = new Real_declarationContext(_ctx, getState());
enterRule(_localctx, 72, RULE_real_declaration);
try {
enterOuterAlt(_localctx, 1);
{
setState(1161);
match(T__26);
setState(1162);
list_of_real_identifiers();
setState(1163);
match(T__1);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
Verilog2001Parser.java 文件源码
项目:netlist-graph
阅读 24
收藏 0
点赞 0
评论 0
public final Udp_identifierContext udp_identifier() throws RecognitionException {
Udp_identifierContext _localctx = new Udp_identifierContext(_ctx, getState());
enterRule(_localctx, 608, RULE_udp_identifier);
try {
enterOuterAlt(_localctx, 1);
{
setState(3933);
identifier();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
Verilog2001Parser.java 文件源码
项目:netlist-graph
阅读 24
收藏 0
点赞 0
评论 0
public final Cell_identifierContext cell_identifier() throws RecognitionException {
Cell_identifierContext _localctx = new Cell_identifierContext(_ctx, getState());
enterRule(_localctx, 530, RULE_cell_identifier);
try {
enterOuterAlt(_localctx, 1);
{
setState(3838);
identifier();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
Verilog2001Parser.java 文件源码
项目:netlist-graph
阅读 22
收藏 0
点赞 0
评论 0
public final T1z_path_delay_expressionContext t1z_path_delay_expression() throws RecognitionException {
T1z_path_delay_expressionContext _localctx = new T1z_path_delay_expressionContext(_ctx, getState());
enterRule(_localctx, 384, RULE_t1z_path_delay_expression);
try {
enterOuterAlt(_localctx, 1);
{
setState(3163);
path_delay_expression();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
Verilog2001Parser.java 文件源码
项目:netlist-graph
阅读 24
收藏 0
点赞 0
评论 0
public final Parameter_identifierContext parameter_identifier() throws RecognitionException {
Parameter_identifierContext _localctx = new Parameter_identifierContext(_ctx, getState());
enterRule(_localctx, 584, RULE_parameter_identifier);
try {
enterOuterAlt(_localctx, 1);
{
setState(3904);
identifier();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
ProgramParserTest.java 文件源码
项目:yql-plus
阅读 25
收藏 0
点赞 0
评论 0
@Test
public void testExpensiveQueryParsing() {
final String yqlQuery = "select * from sources * where "
+ "([{\"ranked\": false}](foo contains \"a\" "
+ "and ([{\"ranked\": true}](bar contains \"b\" "
+ "or ([{\"ranked\": false}](foo contains \"c\" "
+ "and foo contains ([{\"ranked\": true}]\"d\")))))));";
ProgramParser parser = new ProgramParser();
OperatorNode<?> ast;
long start = System.currentTimeMillis();
try {
ast = parser.parse("query", yqlQuery);
} catch (IOException | RecognitionException e) {
throw new IllegalArgumentException(e);
}
long elapsed = System.currentTimeMillis() - start;
Assert.assertNotNull(ast);
System.out.println("Parsing required " + elapsed + " ms");
}