1 / 14

Xtext

Xtext. Typesystem Framework. http://code.google.com/a/eclipselabs.org/p/xtext-typesystem/. Markus Voelter independent /itemis. Typesystem (from Wikipedia).

trory
Download Presentation

Xtext

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Xtext Typesystem Framework http://code.google.com/a/eclipselabs.org/p/xtext-typesystem/ Markus Voelter independent/itemis

  2. Typesystem (from Wikipedia) In computer science, a type system may be defined as a tractable syntactic framework for classifying phrases according to the kinds of values they compute. A type system associates types with each computed value. By examining the flow of these values, a type system attempts to prove that no type errors can occur. The type system in question determines what constitutes a type error, but a type system generally seeks to guarantee that operations expecting a certain kind of value are not used with values for which that operation makes no sense.

  3. Typesystem (from Wikipedia) In computer science, a type system may be defined as a tractable syntactic framework for classifying phrases according to the kinds of values they compute. A type system associates types with each computed value. By examining the flow of these values, a type system attempts to prove that no type errors can occur. The type system in question determines what constitutes a type error, but a type system generally seeks to guarantee that operations expecting a certain kind of value are not used with values for which that operation makes no sense.

  4. Typesystem (from Wikipedia) In computer science, a type system may be defined as a tractable syntactic framework for classifying phrases according to the kinds of values they compute. A type system associates types with each computed value. By examining the flow of these values, a type system attempts to prove that no type errors can occur. The type system in question determines what constitutes a type error, but a type system generally seeks to guarantee that operations expecting a certain kind of value are not used with values for which that operation makes no sense.

  5. Typesystem (from Wikipedia) In computer science, a type system may be defined as a tractable syntactic framework for classifying phrases according to the kinds of values they compute. A type system associates types with each computed value. By examining the flow of these values, a type system attempts to prove that no type errors can occur. The type system in question determines what constitutes a type error, but a type system generally seeks to guarantee that operations expecting a certain kind of value are not used with values for which that operation makes no sense.

  6. x: Var y: Calc type type expr IntType IntType Plus left right IntConst Multi left right IntConst Sqrt expr VarRef

  7. declarefixedtypes x: Var y: Calc type type expr IntType IntType Plus int int left right IntConst Multi int left right double IntConst Sqrt int expr VarRef

  8. declarefixedtypes derivetypes x: Var y: Calc int type type expr IntType IntType Plus int int left right IntConst Multi int left right double IntConst Sqrt int expr VarRef int

  9. declarefixedtypes derivetypes calculatecommon x: Var y: Calc (type hierarchies) int type type expr double IntType IntType Plus int int left right IntConst Multi int double left right double IntConst Sqrt int expr VarRef int

  10. declarefixedtypes derivetypes calculatecommon x: Var y: Calc (type hierarchies) int check types type type expr double IntType IntType Plus int int left right ! ! ! ! ! ! ! IntConst Multi int double left right double IntConst Sqrt int expr VarRef int

  11. declarefixedtypes derivetypes calculatecommon (type hierarchies) check types Xtext Typesystem Framework Demo

  12. declarefixedtypes derivetypes calculatecommon (type hierarchies) check types Xtext Typesystem Framework Editor:popuptoshow type information use type information in scopes Debug:tracetohelp understand how type was calculated Testing:internal Java DSL fortestingthetypesystemrules Docs: 22-page tutorial

  13. declarefixedtypes derivetypes calculatecommon (type hierarchies) check types Xtext Xtext Typesystem Framework Try it: http://code.google.com/a/eclipselabs.org/p/xtext-typesystem/

More Related