26.09.2013 Views

Transformation of Applicative Specifications into Imperative ...

Transformation of Applicative Specifications into Imperative ...

Transformation of Applicative Specifications into Imperative ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix D<br />

Specification <strong>of</strong> Transformer in<br />

RSL1<br />

This appendix contains the specifications <strong>of</strong> the project written within RSL1.<br />

D.1 Formal Specification <strong>of</strong> the RSL AST<br />

Specification D.1 – RSLAst_Module.rsl<br />

scheme RSLAst_Module =<br />

class<br />

type<br />

RSLAst :: libmodule : LibModule,<br />

LibModule ::<br />

context_list : Id ∗ schemedef : SchemeDef,<br />

SchemeDef :: id : Id class_expr : ClassExpr,<br />

ClassExpr ==<br />

BasicClassExpr(declaration_list : Decl ∗ ) |<br />

ExtendingClassExpr(<br />

base_class : ClassExpr,<br />

extension_class : ClassExpr) |<br />

SchemeInstantiation(id : Id),<br />

Decl ==<br />

TypeDecl(type_def_list : TypeDef ∗ ) |<br />

ValueDecl(value_def_list : ValueDef ∗ ) |<br />

VariableDecl(variable_def_list : VariableDef ∗ ) |<br />

TestDecl(test_def_list : TestDef ∗ ),<br />

/∗Type Definitions∗/<br />

301

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!