projects
/
IRC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
+++ b/
Robust/JavaGrammar/Lex/DoubleLiteral.java
@@ -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); }
+}