summaryrefslogtreecommitdiff
path: root/ghc/compiler/parser/literal.ugn
blob: d8424a45ff9f6f6f10d9d407242135eca7d9cddb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
%{
#include "hspincl.h"
%}
%{{
module U_literal where
import Ubiq --  debugging consistency check
import UgenUtil
%}}
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;