mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-30 16:24:09 +03:00
Reworked build system: makefiles replaced with in-program logic; core replaced with targets; preproc/ replaced with Wiring's; now prepend "#include "WProgram.h" instead of wiringlite.inc; new entries in preferences.txt; bundled Wiring libs.
This commit is contained in:
32
app/preproc/CToken.java
Executable file
32
app/preproc/CToken.java
Executable file
@ -0,0 +1,32 @@
|
||||
package processing.app.preproc;
|
||||
|
||||
import antlr.CommonToken;
|
||||
|
||||
public class CToken extends antlr.CommonToken {
|
||||
String source = "";
|
||||
int tokenNumber;
|
||||
|
||||
public String getSource()
|
||||
{
|
||||
return source;
|
||||
}
|
||||
|
||||
public void setSource(String src)
|
||||
{
|
||||
source = src;
|
||||
}
|
||||
|
||||
public int getTokenNumber()
|
||||
{
|
||||
return tokenNumber;
|
||||
}
|
||||
|
||||
public void setTokenNumber(int i)
|
||||
{
|
||||
tokenNumber = i;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "CToken:" +"(" + hashCode() + ")" + "[" + getType() + "] "+ getText() + " line:" + getLine() + " source:" + source ;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user