本文整理了Java中com.ximpleware.xpath.Yylex
类的一些代码示例,展示了Yylex
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Yylex
类的具体详情如下:
包路径:com.ximpleware.xpath.Yylex
类名称:Yylex
[英]This class is a scanner generated by JFlex 1.4.3 on 10/29/09 7:28 PM from the specification file C:/Documents and Settings/HP_Administrator/workspace/ximple-dev/com/ximpleware/xpath/scanner.flex
[中]这个类是JFlex1.4.3在2009年10月29日晚上7:28从规范文件C:/Documents and Settings/HP_Administrator/workspace/ximple dev/com/ximpleware/xpath/scanner生成的扫描程序。弯曲
代码示例来源:origin: org.agmip.thirdparty/ximpleware-vtd-xml
public parser (java.io.Reader input) {
super(new Yylex(input));
nsHash = null;
}
代码示例来源:origin: dryade/vtd-xml
/**
* Same as next_token but also prints the token to standard out
* for debugging.
*
* This code was contributed by Karl Meissner <meissnersd@yahoo.com>
*/
public java_cup.runtime.Symbol debug_next_token() throws java.io.IOException, XPathParseException {
java_cup.runtime.Symbol s = next_token();
System.out.println( " --"+ yytext() + "--" + getTokenName(s.sym) + "--");
return s;
}
代码示例来源:origin: org.agmip.thirdparty/ximpleware-vtd-xml
/**
* Contains user EOF-code, which will be executed exactly once,
* when the end of file is reached
*/
private void zzDoEOF() throws java.io.IOException {
if (!zzEOFDone) {
zzEOFDone = true;
yyclose();
}
}
代码示例来源:origin: com.ximpleware/vtd-xml
/**
* Pushes the specified amount of characters back into the input stream.
*
* They will be read again by then next call of the scanning method
*
* @param number the number of characters to be read again.
* This number must not be greater than yylength()!
*/
public void yypushback(int number) {
if ( number > yylength() )
zzScanError(ZZ_PUSHBACK_2BIG);
zzMarkedPos -= number;
}
代码示例来源:origin: com.ximpleware/vtd-xml
boolean eof = zzRefill();
case 57:
{ isName = 1;
yypushback(1);
return sym(FNAME,fname);
yypushback(1);
return sym(FNAME,fname);
yypushback(1);
return sym(FNAME,fname);
{ if (isName == 0) {
isName = 1 ;
return sym(OR);
} else {
isName = 0;
name = new NameType();
name.qname = "or";
return sym(NAME,name);
{ isName = 1 ; return sym(NE);
{ if (isName == 0) {
isName = 1 ;
代码示例来源:origin: com.ximpleware/vtd-xml
Yylex scanner = null;
try {
scanner = new Yylex( new java.io.FileReader(argv[i]) );
while ( !scanner.zzAtEOF ) scanner.debug_next_token();
代码示例来源:origin: org.agmip.thirdparty/ximpleware-vtd-xml
public void unrecovered_syntax_error(Symbol cur_token) throws XPathParseException{
Yylex scanner = (Yylex)getScanner();
throw new XPathParseException("XPath Syntax error: "+cur_token, scanner.getOffset());
}
代码示例来源:origin: org.agmip.thirdparty/ximpleware-vtd-xml
boolean eof = zzRefill();
case 57:
{ isName = 1;
yypushback(1);
return sym(FNAME,fname);
yypushback(1);
return sym(FNAME,fname);
yypushback(1);
return sym(FNAME,fname);
{ if (isName == 0) {
isName = 1 ;
return sym(OR);
} else {
isName = 0;
name = new NameType();
name.qname = "or";
return sym(NAME,name);
{ isName = 1 ; return sym(NE);
{ if (isName == 0) {
isName = 1 ;
代码示例来源:origin: org.agmip.thirdparty/ximpleware-vtd-xml
/**
* Pushes the specified amount of characters back into the input stream.
*
* They will be read again by then next call of the scanning method
*
* @param number the number of characters to be read again.
* This number must not be greater than yylength()!
*/
public void yypushback(int number) {
if ( number > yylength() )
zzScanError(ZZ_PUSHBACK_2BIG);
zzMarkedPos -= number;
}
代码示例来源:origin: dryade/vtd-xml
Yylex scanner = null;
try {
scanner = new Yylex( new java.io.FileReader(argv[i]) );
while ( !scanner.zzAtEOF ) scanner.debug_next_token();
代码示例来源:origin: dryade/vtd-xml
public void unrecovered_syntax_error(Symbol cur_token) throws XPathParseException{
Yylex scanner = (Yylex)getScanner();
throw new XPathParseException("XPath Syntax error: "+cur_token, scanner.getOffset());
}
代码示例来源:origin: dryade/vtd-xml
boolean eof = zzRefill();
case 57:
{ isName = 1;
yypushback(1);
return sym(FNAME,fname);
yypushback(1);
return sym(FNAME,fname);
yypushback(1);
return sym(FNAME,fname);
{ if (isName == 0) {
isName = 1 ;
return sym(OR);
} else {
isName = 0;
name = new NameType();
name.qname = "or";
return sym(NAME,name);
{ isName = 1 ; return sym(NE);
{ if (isName == 0) {
isName = 1 ;
代码示例来源:origin: org.agmip.thirdparty/ximpleware-vtd-xml
/**
* Same as next_token but also prints the token to standard out
* for debugging.
*
* This code was contributed by Karl Meissner <meissnersd@yahoo.com>
*/
public java_cup.runtime.Symbol debug_next_token() throws java.io.IOException, XPathParseException {
java_cup.runtime.Symbol s = next_token();
System.out.println( " --"+ yytext() + "--" + getTokenName(s.sym) + "--");
return s;
}
代码示例来源:origin: dryade/vtd-xml
/**
* Pushes the specified amount of characters back into the input stream.
*
* They will be read again by then next call of the scanning method
*
* @param number the number of characters to be read again.
* This number must not be greater than yylength()!
*/
public void yypushback(int number) {
if ( number > yylength() )
zzScanError(ZZ_PUSHBACK_2BIG);
zzMarkedPos -= number;
}
代码示例来源:origin: org.agmip.thirdparty/ximpleware-vtd-xml
Yylex scanner = null;
try {
scanner = new Yylex( new java.io.FileReader(argv[i]) );
while ( !scanner.zzAtEOF ) scanner.debug_next_token();
代码示例来源:origin: com.ximpleware/vtd-xml
public void unrecovered_syntax_error(Symbol cur_token) throws XPathParseException{
Yylex scanner = (Yylex)getScanner();
throw new XPathParseException("XPath Syntax error: "+cur_token, scanner.getOffset());
}
代码示例来源:origin: com.ximpleware/vtd-xml
public parser (java.io.InputStream input) {
super(new Yylex(input));
}
代码示例来源:origin: com.ximpleware/vtd-xml
/**
* Contains user EOF-code, which will be executed exactly once,
* when the end of file is reached
*/
private void zzDoEOF() throws java.io.IOException {
if (!zzEOFDone) {
zzEOFDone = true;
yyclose();
}
}
代码示例来源:origin: com.ximpleware/vtd-xml
/**
* Same as next_token but also prints the token to standard out
* for debugging.
*
* This code was contributed by Karl Meissner <meissnersd@yahoo.com>
*/
public java_cup.runtime.Symbol debug_next_token() throws java.io.IOException, XPathParseException {
java_cup.runtime.Symbol s = next_token();
System.out.println( " --"+ yytext() + "--" + getTokenName(s.sym) + "--");
return s;
}
代码示例来源:origin: org.agmip.thirdparty/ximpleware-vtd-xml
if(RESULT.d<1)
throw new XPathParseException("invalid index number for predicate",
scanner.getOffset());
RESULT.type = Predicate.simple;
throw new XPathParseException(as.getAxisString()+" axis can't operate on"+
" comment(), pi(), or text()",
scanner.getOffset());
内容来源于网络,如有侵权,请联系作者删除!