Transformation of Applicative Specifications into Imperative ...
Transformation of Applicative Specifications into Imperative ... Transformation of Applicative Specifications into Imperative ...
APPENDIX E. ANTLR GRAMMAR ; } else { ocond = new NoPreCondition ( ) ; ocond = new PreCondition ( cond ) ; } } { efd = new E x p l i c i t F u n c t i o n D e f ( st , ia , ve , ocond ) ; } i d _ a p p l i c a t i o n returns [ I d A p p l i c a t i o n i a ] { i a = null ; Id i d e n t i f i e r = null ; FormalFunctionParameter f f p = null ; } : i d e n t i f i e r = id LPAREN f f p = formal_function_parameter RPAREN { i a = new I d A p p l i c a t i o n ( i d e n t i f i e r , f f p ) ; } ; formal_function_parameter returns [ FormalFunctionParameter f f p ] { f f p = null ; RSLListDefault b i n d i n g _ l i s t = new RSLListDefault() ; Binding b = null ; } : ( b = binding { b i n d i n g _ l i s t . g e t L i s t ( ) . add ( b ) ; } ( COMMA b = binding { b i n d i n g _ l i s t . g e t L i s t ( ) . add ( b ) ; } ) ∗ ) ? { f f p = new FormalFunctionParameter ( b i n d i n g _ l i s t ) ; } ; single_typing returns [ SingleTyping s t ] { s t = null ; Binding b = null ; TypeExpr te = null ; } : b = binding COLON te = type_expr { s t = new SingleTyping (b , te ) ; } ; typing returns [ Typing t ] { t = null ; Binding b = null ; RSLListDefault b i n d i n g _ l i s t = 484
} : ; TypeExpr te = null ; new RSLListDefault() ; b = binding ( COLON te = type_expr { t = new Make_SingleTyping ( new SingleTyping (b , te ) ) ; } | COMMA { b i n d i n g _ l i s t . g e t L i s t ( ) . add ( b ) ; } b = binding { b i n d i n g _ l i s t . g e t L i s t ( ) . add ( b ) ; } ( COMMA b = binding { b i n d i n g _ l i s t . g e t L i s t ( ) . add ( b ) ; } ) ∗ COLON te = type_expr { t = new Make_MultipleTyping ( new MultipleTyping ( b i n d i n g _ l i s t , te ) ) ; } ) binding returns [ Binding b ] { b = null ; Binding b1 = null ; Id i d e n t i f i e r = null ; RSLListDefault b i n d i n g _ l i s t = new RSLListDefault() ; } : ( b1 = s i n g l e _ b i n d i n g {b = b1 ; } | b1 = prod_binding {b = b1 ; } ) ; s i n g l e _ b i n d i n g returns [ Binding b ] { b = null ; Id i d e n t i f i e r = null ; } : i d e n t i f i e r = id {b = new IdBinding ( i d e n t i f i e r ) ; } ; 485
- Page 450 and 451: APPENDIX D. SPECIFICATION OF TRANSF
- Page 452 and 453: APPENDIX D. SPECIFICATION OF TRANSF
- Page 454 and 455: APPENDIX D. SPECIFICATION OF TRANSF
- Page 456 and 457: APPENDIX D. SPECIFICATION OF TRANSF
- Page 458 and 459: APPENDIX D. SPECIFICATION OF TRANSF
- Page 460 and 461: APPENDIX D. SPECIFICATION OF TRANSF
- Page 462 and 463: APPENDIX D. SPECIFICATION OF TRANSF
- Page 464 and 465: APPENDIX D. SPECIFICATION OF TRANSF
- Page 466 and 467: APPENDIX D. SPECIFICATION OF TRANSF
- Page 468 and 469: APPENDIX D. SPECIFICATION OF TRANSF
- Page 470 and 471: APPENDIX D. SPECIFICATION OF TRANSF
- Page 472 and 473: APPENDIX D. SPECIFICATION OF TRANSF
- Page 474 and 475: APPENDIX D. SPECIFICATION OF TRANSF
- Page 476 and 477: APPENDIX D. SPECIFICATION OF TRANSF
- Page 478 and 479: APPENDIX D. SPECIFICATION OF TRANSF
- Page 480 and 481: APPENDIX D. SPECIFICATION OF TRANSF
- Page 482 and 483: APPENDIX D. SPECIFICATION OF TRANSF
- Page 484 and 485: APPENDIX D. SPECIFICATION OF TRANSF
- Page 486 and 487: APPENDIX D. SPECIFICATION OF TRANSF
- Page 488 and 489: APPENDIX D. SPECIFICATION OF TRANSF
- Page 490 and 491: APPENDIX D. SPECIFICATION OF TRANSF
- Page 492 and 493: APPENDIX E. ANTLR GRAMMAR END = "en
- Page 494 and 495: APPENDIX E. ANTLR GRAMMAR ; d = d e
- Page 496 and 497: APPENDIX E. ANTLR GRAMMAR ; } ( com
- Page 498 and 499: APPENDIX E. ANTLR GRAMMAR ; ) ∗ }
- Page 502 and 503: APPENDIX E. ANTLR GRAMMAR prod_bind
- Page 504 and 505: APPENDIX E. ANTLR GRAMMAR ; | | | |
- Page 506 and 507: APPENDIX E. ANTLR GRAMMAR ; | NAT {
- Page 508 and 509: APPENDIX E. ANTLR GRAMMAR ; { ve3 =
- Page 510 and 511: APPENDIX E. ANTLR GRAMMAR ( | RPARE
- Page 512 and 513: APPENDIX E. ANTLR GRAMMAR | { optio
- Page 514 and 515: APPENDIX E. ANTLR GRAMMAR new RSLLi
- Page 516 and 517: APPENDIX E. ANTLR GRAMMAR infix_op_
- Page 518 and 519: APPENDIX E. ANTLR GRAMMAR : v l = v
- Page 520 and 521: APPENDIX E. ANTLR GRAMMAR } t e s t
- Page 522 and 523: APPENDIX E. ANTLR GRAMMAR } : ’ .
- Page 524 and 525: APPENDIX E. ANTLR GRAMMAR 508
- Page 526 and 527: APPENDIX F. SOURCE CODE System . e
- Page 528 and 529: APPENDIX F. SOURCE CODE } } catch (
- Page 530 and 531: APPENDIX F. SOURCE CODE F.2 Visitor
- Page 532 and 533: APPENDIX F. SOURCE CODE public void
- Page 534 and 535: APPENDIX F. SOURCE CODE public void
- Page 536 and 537: APPENDIX F. SOURCE CODE public void
- Page 538 and 539: APPENDIX F. SOURCE CODE public void
- Page 540 and 541: APPENDIX F. SOURCE CODE public void
- Page 542 and 543: APPENDIX F. SOURCE CODE public void
- Page 544 and 545: APPENDIX F. SOURCE CODE public void
- Page 546 and 547: APPENDIX F. SOURCE CODE StringRSLAs
- Page 548 and 549: APPENDIX F. SOURCE CODE } nameOrWil
APPENDIX E. ANTLR GRAMMAR<br />
;<br />
}<br />
else {<br />
ocond = new NoPreCondition ( ) ;<br />
ocond = new PreCondition ( cond ) ; }<br />
}<br />
{ efd = new E x p l i c i t F u n c t i o n D e f ( st , ia , ve , ocond ) ; }<br />
i d _ a p p l i c a t i o n returns [ I d A p p l i c a t i o n i a ] {<br />
i a = null ;<br />
Id i d e n t i f i e r = null ;<br />
FormalFunctionParameter f f p = null ;<br />
}<br />
: i d e n t i f i e r = id LPAREN<br />
f f p = formal_function_parameter<br />
RPAREN<br />
{ i a = new I d A p p l i c a t i o n ( i d e n t i f i e r , f f p ) ; }<br />
;<br />
formal_function_parameter returns [ FormalFunctionParameter f f p ] {<br />
f f p = null ;<br />
RSLListDefault b i n d i n g _ l i s t =<br />
new RSLListDefault() ;<br />
Binding b = null ;<br />
}<br />
: (<br />
b = binding<br />
{ b i n d i n g _ l i s t . g e t L i s t ( ) . add ( b ) ; }<br />
(<br />
COMMA b = binding<br />
{ b i n d i n g _ l i s t . g e t L i s t ( ) . add ( b ) ; }<br />
) ∗<br />
) ?<br />
{ f f p = new FormalFunctionParameter ( b i n d i n g _ l i s t ) ; }<br />
;<br />
single_typing returns [ SingleTyping s t ] {<br />
s t = null ;<br />
Binding b = null ;<br />
TypeExpr te = null ;<br />
}<br />
: b = binding COLON te = type_expr<br />
{ s t = new SingleTyping (b , te ) ; }<br />
;<br />
typing returns [ Typing t ] {<br />
t = null ;<br />
Binding b = null ;<br />
RSLListDefault b i n d i n g _ l i s t =<br />
484