-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy patheunit.lexx.tst
90 lines (74 loc) · 1.97 KB
/
eunit.lexx.tst
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
%%-*- mode: erlang -*-
%%-*- coding: utf-8 -*-
% Test control options
[{tests, []}].
%% =============================================================================
%% TESTS: LEXX
%% -----------------------------------------------------------------------------
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% W = \s\r\n
% A = [A-Za-z0-9,_{W}]
% OS = (.*|[{W}]*)
%
% (fun[{W}]*\({A}*\){OS}*\->{OS}*end\.) : match_fun(TokenLine, TokenChars).
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
"select fun()->end. from dual".
"select fun( )a->end. from dual".
"select fun()->bend. from dual".
"select fun( )a->bend. from dual".
"select fun(myArg_1)->end. from dual".
"select fun(myArg_1)a->end. from dual".
"select fun(myArg_1)->bend. from dual".
"select fun(myArg_1)a->b end. from dual".
"select fun(myArg_1, myArg_2)a->b end. from dual".
"select fun () -> end. from dual".
"select fun ( ) a -> end. from dual".
"select fun () -> b end. from dual".
"select fun ( ) a -> b end. from dual".
"select fun ( myArg_1 ) -> end. from dual".
"select fun ( myArg_1 ) a -> end. from dual".
"select fun ( myArg_1 ) -> b end. from dual".
"select fun ( myArg_1 ) a -> b end. from dual".
"
select fun
(myArg_1)-> end.
from dual
".
"
select fun(myArg_1)
-> end.
from dual
".
"
select fun(myArg_1)->
end.
from dual
".
"
select
fun
(
myArg_1
)
a
->
b
end.
from dual
".
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% W = \s\r\n
%
% (fun[{W}]+['A-Za-z0-9_]+:['A-Za-z0-9_]+\/[0-9]+\.) : {token, {'STRING', TokenLine, TokenChars}}.
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
"select fun aB_1:cD_2/5. from dual".
"select fun 'aB_1:'cD_2/5. from dual".
"
select
fun
aB_1:cD_2/5.
from dual
".
%% -----------------------------------------------------------------------------
%% TESTS: LEXX
%% =============================================================================