summaryrefslogtreecommitdiff
path: root/test/cases/trans.d/case/zlen1_julia.rl
blob: c216470d376aa86861daba873be3b3eb855e92a8 (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
35
36
//
// @LANG: julia
// @GENERATED: true
//




%%{
	machine zlen1;
	main := zlen;
}%%



%% write data;

function m( data::AbstractString )
	p = 0
	pe = length(data)
	eof = length(data)
	cs = 0
	buffer = ""

	%% write init;
	%% write exec;

	if ( cs >= zlen1_first_final )
		println( "ACCEPT" );
	else
		println( "FAIL" );
	end
end

	m( "" );
	m( "x" );