summaryrefslogtreecommitdiff
path: root/ghc/compiler/yaccParser/literal.ugn
diff options
context:
space:
mode:
Diffstat (limited to 'ghc/compiler/yaccParser/literal.ugn')
-rw-r--r--ghc/compiler/yaccParser/literal.ugn25
1 files changed, 25 insertions, 0 deletions
diff --git a/ghc/compiler/yaccParser/literal.ugn b/ghc/compiler/yaccParser/literal.ugn
new file mode 100644
index 0000000000..f35f54f576
--- /dev/null
+++ b/ghc/compiler/yaccParser/literal.ugn
@@ -0,0 +1,25 @@
+%{
+#include "hspincl.h"
+%}
+%{{
+module U_literal where
+import UgenUtil
+import Util
+%}}
+type literal;
+ integer : < ginteger : stringId; >;
+ intprim : < gintprim : stringId; >;
+ floatr : < gfloatr : stringId; >;
+ doubleprim : < gdoubleprim : stringId; >;
+ floatprim : < gfloatprim : stringId; >;
+ charr : < gchar : hstring; >;
+ charprim : < gcharprim : hstring; >;
+ string : < gstring : hstring; >;
+ stringprim : < gstringprim : hstring; >;
+ clitlit : < gclitlit : stringId;
+ gclitlit_kind : stringId; >;
+ norepi : < gnorepi : stringId; >;
+ norepr : < gnorepr_n : stringId;
+ gnorepr_d : stringId; >;
+ noreps : < gnoreps : hstring; >;
+end;