Changeset 97 for branches/interpreter/Source3.pas
- Timestamp:
- Feb 2, 2017, 11:35:09 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/interpreter/Source3.pas
r96 r97 49 49 TFunctionCall = procedure ; 50 50 51 TCmdType = (ctWhileDo, ctIfThenElse, ctBeginEnd, ctAssignment, ctExecution); 51 52 TCommand = record 52 end; 53 CmdType: TCmdType; 54 Ptr: Pointer; 55 { case Integer of 56 0: (WhileDo: TWhileDo); 57 1: (IfThenElse: TIfThenElse); 58 2: (BeginEnd: TBeginEnd); 59 3: (Assignment: TAssignment); 60 4: (Execution: TExecution); 61 end; 62 } end; 53 63 PCommand = ^TCommand; 54 64 55 65 TBeginEnd = record 56 Commands: array of PCommand;66 Commands: array of TCommand; 57 67 end; 58 68 PBeginEnd = ^TBeginEnd; … … 66 76 Source: TExpression; 67 77 end; 78 PAssignment = ^TAssignment; 68 79 69 80 TIfThenElse = record … … 73 84 end; 74 85 PIfThenElse = ^TIfThenElse; 86 87 TWhileDo = record 88 Condition: TExpression; 89 Command: TCommand; 90 end; 91 PWhileDo = ^TWhileDo; 75 92 76 93 { TFunction } … … 93 110 end; 94 111 112 TExecutionParams = record 113 Items: array of TExpression; 114 end; 115 116 TExecution = record 117 Func: PFunction; 118 Parameters: TExecutionParams; 119 end; 120 PExecution = ^TExecution; 121 95 122 TProgramCode = record 96 123 Name: string;
Note:
See TracChangeset
for help on using the changeset viewer.