forked from JavaTX/JavaCompilerCore
55 lines
1.1 KiB
Java
Executable File
55 lines
1.1 KiB
Java
Executable File
// ino.module.Scanner.8618.package
|
|
package mycompiler.myparser;
|
|
// ino.end
|
|
// ino.class.Scanner.24842.declaration
|
|
public class Scanner extends JavaLexer implements JavaParser.yyInput
|
|
// ino.end
|
|
// ino.class.Scanner.24842.body
|
|
{
|
|
// ino.method.Scanner.24847.definition
|
|
public Scanner (java.io.Reader reader)
|
|
// ino.end
|
|
// ino.method.Scanner.24847.body
|
|
{
|
|
super (reader);
|
|
}
|
|
// ino.end
|
|
|
|
// ino.method.token.24850.definition
|
|
public int token ()
|
|
// ino.end
|
|
// ino.method.token.24850.body
|
|
{
|
|
if (token.token instanceof String)
|
|
{
|
|
return (int)(((String)token.token).charAt(0));
|
|
}
|
|
else
|
|
{
|
|
return ((Integer)token.token).intValue();
|
|
}
|
|
}
|
|
// ino.end
|
|
|
|
// ino.method.advance.24853.definition
|
|
public boolean advance ()
|
|
throws java.io.IOException
|
|
// ino.end
|
|
// ino.method.advance.24853.body
|
|
{
|
|
boolean ret = yylex();
|
|
return ret;
|
|
}
|
|
// ino.end
|
|
|
|
// ino.method.value.24856.definition
|
|
public Object value ()
|
|
// ino.end
|
|
// ino.method.value.24856.body
|
|
{
|
|
return this.token;
|
|
}
|
|
// ino.end
|
|
}
|
|
// ino.end
|