summaryrefslogtreecommitdiff
path: root/test/ragel.d/julia1.rl
blob: 4b349908a1db6e598d4e748de834fbd7a7df21ca (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
26
27
28
29
30
31
32
33
34
// @LANG: julia 

%%{
	machine atoi;

	main := '-'? [0-9]+ '.' @{
		println( "match" );
	};
}%%

%% write data;

function test( data_string::AbstractString )
	data = Vector{UInt8}( data_string )
	p = 0
	pe = length(data)
	eof = length(data)
	cs = 0

	%% write init;

	%% write exec;
end


test( "-99." )
test( "100." )
test( "100x." )
test( "1000." )

######## OUTPUT #######
match
match
match