lab2part2 - / /*-*\ / | Concrete Template :...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
// /*-------------------------------------------------------------------*\ // | Concrete Template : Statement_Kernel_1 // \*-------------------------------------------------------------------*/ #ifndef CT_STATEMENT_KERNEL_1 #define CT_STATEMENT_KERNEL_1 1 ///------------------------------------------------------------------------ /// Global Context -------------------------------------------------------- ///------------------------------------------------------------------------ #include "AT/Statement/Kernel.h" #include "CT/Tree/Kernel_1a.h" ///------------------------------------------------------------------------ /// Interface ------------------------------------------------------------- ///------------------------------------------------------------------------ concrete_template < concrete_instance class Nested_Statement_Type, /*! implements abstract_instance Statement_Kernel < Nested_Statement_Type > !*/ concrete_instance class Tree_Node = Record < Integer, Integer, Text >, concrete_instance class Tree_Of_Tree_Node = Tree_Kernel_1a <Tree_Node>, concrete_instance class Rep = Representation < Tree_Of_Tree_Node > > class Statement_Kernel_1 : implements abstract_instance Statement_Kernel <Nested_Statement_Type>, encapsulates concrete_instance Rep { private: rep_field_name (Rep, 0, Tree_Of_Tree_Node, tree_rep); field_name (Tree_Node, 0, Integer, kind); field_name (Tree_Node, 1, Integer, test); field_name (Tree_Node, 2, Text, instruction); /*! math definition IS_LEGAL_LABEL ( k: integer t: integer i: string of character ): boolean is k is in Kind and t is in Condition and IS_IDENTIFIER (i) and IS_STATEMENT_LABEL (k, t, i)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/27/2012 for the course CSE 321 taught by Professor Bucci during the Winter '11 term at Ohio State.

Page1 / 5

lab2part2 - / /*-*\ / | Concrete Template :...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online