1
Matching of Meta-Expressions with Recursive Bindings
David Sabel
Goethe-University Frankfurt am Main, Germany
UNIF 2017, Oxford, UK
†Research supported by the Deutsche Forschungsgemeinschaft (DFG) under grant SA 2908/3-1.
Matching of Meta-Expressions with Recursive Bindings David Sabel - - PowerPoint PPT Presentation
Matching of Meta-Expressions with Recursive Bindings David Sabel Goethe-University Frankfurt am Main, Germany UNIF 2017, Oxford, UK Research supported by the Deutsche Forschungsgemeinschaft (DFG) under grant SA 2908/3-1. 1 Motivation
†Research supported by the Deutsche Forschungsgemeinschaft (DFG) under grant SA 2908/3-1.
2/18
3/18
program transformation standard reduction
program transformation standard reduction
3/18
i=1 , xn=An, Env in A[x1]
4/18
i=1 , xn=An, Env in A[x1]
i=1
4/18
i=1 , xn=An, Env in A[x1]
i=1
4/18
i=1 , xn=An, Env in A[x1]
i=1
4/18
i=1 , xn=An, Env in A[x1]
i=1
4/18
5/18
i=1 , xn=An, Env in A[x1]
6/18
i=1 , xn=An, Env in A[x1]
6/18
i=1 , xn=An, Env in A[x1]
6/18
i=1 , xn=An, Env in A[x1]
6/18
7/18
7/18
program transformation standard reduction
8/18
9/18
10/18
11/18
12/18
13/18
14/18
∀b′:env=b′;env′′
∀E:env=E;env′′
∀Ch:env=Ch[y,s];env′′
where σ = {Ch[·1, ·2] → [·1].D[·2]} and cl(D) = cl(Ch)
∀Ch:env=Ch[y,s];env′′
where σ = {Ch[·1, ·2]→[·1].D[X]; Ch2[X, ·2]}, cl(D)=cl(Ch2)=cl(Ch)
∀Ch:env=Ch[y,s];env′′
where σ={Ch[·1, ·2]→Ch1[·1, D2[Y ]]; Y = D1[X]; Ch2[X, ·2]}, cl(Di)=cl(Chi)=cl(Ch)
∀Ch:env=Ch[y,s];env′′
σ={Ch[·1, ·2]→Ch1[·1, D′[X1]]; X1.D[·2]}, cl(D)=cl(D′)=cl(Ch1)=cl(Ch)
15/18
∀b′:env=b′;env′′
∀E:env=E;env′′
∀Ch:env=Ch[y,s];env′′
where σ = {Ch[·1, ·2] → [·1].D[·2]} and cl(D) = cl(Ch)
∀Ch:env=Ch[y,s];env′′
where σ = {Ch[·1, ·2]→[·1].D[X]; Ch2[X, ·2]}, cl(D)=cl(Ch2)=cl(Ch)
∀Ch:env=Ch[y,s];env′′
where σ={Ch[·1, ·2]→Ch1[·1, D2[Y ]]; Y = D1[X]; Ch2[X, ·2]}, cl(Di)=cl(Chi)=cl(Ch)
∀Ch:env=Ch[y,s];env′′
σ={Ch[·1, ·2]→Ch1[·1, D′[X1]]; X1.D[·2]}, cl(D)=cl(D′)=cl(Ch1)=cl(Ch)
15/18
16/18
17/18
18/18
18/18