checking in stuff
[IRC.git] / Robust / JavaGrammar / Lex / DoubleLiteral.java
diff --git a/Robust/JavaGrammar/Lex/DoubleLiteral.java b/Robust/JavaGrammar/Lex/DoubleLiteral.java
new file mode 100644 (file)
index 0000000..d56e6c1
--- /dev/null
@@ -0,0 +1,9 @@
+package Lex;
+
+import java_cup.runtime.Symbol;
+
+class DoubleLiteral extends NumericLiteral {
+  DoubleLiteral(double d) { this.val = new Double(d); }
+
+  Symbol token() { return new Symbol(Sym.FLOATING_POINT_LITERAL, val); }
+}