[09 - LL(I) AST] Re-init project as project with modules
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
/* **********************************************
|
||||
* Duale Hochschule Baden-Württemberg Karlsruhe
|
||||
* Prof. Dr. Jörn Eisenbiegler
|
||||
*
|
||||
* Vorlesung Übersetzerbau
|
||||
* Praxis LL(1)-Parser für X
|
||||
* - Token-Definition floatConst
|
||||
*
|
||||
* **********************************************
|
||||
*/
|
||||
|
||||
package de.dhbw.compiler.xparser;
|
||||
|
||||
public class FloatConstToken extends Token {
|
||||
|
||||
private double value=0.0;
|
||||
|
||||
public FloatConstToken(int type, String text, int line, int column, double value) {
|
||||
super(type,text,line,column);
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public double getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user