Changeset 33 for branches/Syntetizer/UMainForm.pas
- Timestamp:
- Aug 4, 2010, 1:53:01 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Syntetizer/UMainForm.pas
r27 r33 51 51 Value := 'CONSOLE'; 52 52 end; 53 with Procedures do begin 54 with TProcedure(Procedures[Procedures.Add(TProcedure.Create)]) do begin 55 Name := 'Boom'; 56 with TProcedureParameter(Parameters[Parameters.Add(TProcedureParameter.Create)]) do begin 57 Name := 'Value'; 58 VarType := 'string'; 59 end; 60 with Code do begin 61 with TProcedureCall(Commands[Commands.Add(TProcedureCall.Create)]) do begin 62 Name := 'WriteLn'; 63 with TProcedureParameterValue(Parameters[Parameters.Add(TProcedureParameterValue.Create)]) do begin 64 Value := 'Value'; 65 end; 66 end; 67 end; 68 end; 69 end; 53 70 with Variables do begin 54 71 with TVariableDeclaration(Variables[Variables.Add(TVariableDeclaration.Create)]) do begin … … 60 77 with TProcedureCall(Commands[Commands.Add(TProcedureCall.Create)]) do begin 61 78 Name := 'WriteLn'; 62 with TProcedureParameter (Parameters[Parameters.Add(TProcedureParameter.Create)]) do begin79 with TProcedureParameterValue(Parameters[Parameters.Add(TProcedureParameterValue.Create)]) do begin 63 80 Value := '''Hello hell'''; 64 81 end;
Note:
See TracChangeset
for help on using the changeset viewer.