Changeset 12 for branches/Void
- Timestamp:
- Nov 9, 2009, 10:02:35 PM (15 years ago)
- Location:
- branches/Void
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Void/Example.void
r11 r12 1 1 var 2 2 Text: string; 3 begin; 3 A: Integer; 4 begin 4 5 Text := 'Hell'; 5 6 WriteLn('Leave me'); 6 7 WriteLn(Text); 7 8 ReadLn; 8 end ;9 end. -
branches/Void/UCompilator.pas
r11 r12 49 49 with Model, Module, BeginEnd do begin 50 50 if Parser.TokenType = ttWhiteSpace then begin 51 Parser.ParseNextToken; 51 52 end else 52 53 if Parser.TokenType = ttIdentifier then begin … … 66 67 ParseBeginEnd; 67 68 end; 68 end ;69 end else Parser.ParseNextToken; 69 70 end; 70 71 end; … … 76 77 Variable: TVariable; 77 78 begin 79 Parser.ParseNextToken; 80 if Parser.TokenType <> ttWhiteSpace then DoError('Expected white space'); 81 Parser.ParseNextToken; 82 if Parser.TokenType <> ttIdentifier then DoError('Expected identifier'); 78 83 repeat 79 Parser.ParseNextToken;80 if Parser.TokenType <> ttWhiteSpace then DoError('Expected white space');81 Parser.ParseNextToken;82 if Parser.TokenType <> ttIdentifier then DoError('Expected identifier');83 84 VariableName := Parser.TokenValue; 84 85 Parser.ParseNextToken; … … 133 134 Value: string; 134 135 begin 135 with Model, Module, BeginEnd do begin 136 Parser.ParseNextToken; 137 with Model, Module, BeginEnd do repeat 136 138 if Parser.TokenType = ttWhiteSpace then begin 137 139 end else 138 140 if Parser.TokenType = ttIdentifier then begin 141 if Parser.TokenValue = 'end' then Break; 139 142 CommandName := Parser.TokenValue; 140 143 begin … … 186 189 if Parser.TokenType <> ttWhiteSpace then DoError('Expected white space'); 187 190 end else DoError('Expected identifier'); 188 end; 191 Parser.ParseNextToken; 192 until False; 193 Parser.ParseNextToken; 189 194 end; 190 195 -
branches/Void/project1.lpi
r11 r12 25 25 <local> 26 26 <FormatVersion Value="1"/> 27 <LaunchingApplication PathPlusParams=" /usr/X11R6/bin/xterm -T 'Lazarus Run Output' -e $(LazarusDir)/tools/runwait.sh $(TargetCmdLine)"/>27 <LaunchingApplication PathPlusParams="\usr\X11R6\bin\xterm -T 'Lazarus Run Output' -e $(LazarusDir)\tools\runwait.sh $(TargetCmdLine)"/> 28 28 </local> 29 29 </RunParams> … … 40 40 <CursorPos X="21" Y="16"/> 41 41 <TopLine Value="1"/> 42 <EditorIndex Value="2"/> 43 <UsageCount Value="32"/> 44 <Loaded Value="True"/> 42 <UsageCount Value="39"/> 45 43 </Unit0> 46 44 <Unit1> … … 50 48 <ResourceBaseClass Value="Form"/> 51 49 <UnitName Value="UMainForm"/> 52 <CursorPos X="4 4" Y="91"/>53 <TopLine Value=" 68"/>50 <CursorPos X="46" Y="28"/> 51 <TopLine Value="52"/> 54 52 <EditorIndex Value="0"/> 55 <UsageCount Value="3 2"/>53 <UsageCount Value="39"/> 56 54 <Loaded Value="True"/> 57 55 </Unit1> … … 59 57 <Filename Value="UCompilator.pas"/> 60 58 <UnitName Value="UCompilator"/> 61 <CursorPos X=" 1" Y="60"/>62 <TopLine Value=" 50"/>59 <CursorPos X="24" Y="80"/> 60 <TopLine Value="64"/> 63 61 <EditorIndex Value="1"/> 64 <UsageCount Value="1 6"/>62 <UsageCount Value="19"/> 65 63 <Loaded Value="True"/> 66 64 </Unit2> … … 70 68 <UnitName Value="UOutputGenerator"/> 71 69 <CursorPos X="12" Y="118"/> 72 <TopLine Value="1 12"/>73 <EditorIndex Value=" 4"/>74 <UsageCount Value="3 2"/>70 <TopLine Value="106"/> 71 <EditorIndex Value="3"/> 72 <UsageCount Value="39"/> 75 73 <Loaded Value="True"/> 76 74 </Unit3> … … 78 76 <Filename Value="Example.void"/> 79 77 <IsPartOfProject Value="True"/> 80 <CursorPos X="1 5" Y="4"/>78 <CursorPos X="1" Y="1"/> 81 79 <TopLine Value="1"/> 82 <UsageCount Value="3 2"/>80 <UsageCount Value="39"/> 83 81 <SyntaxHighlighter Value="None"/> 84 82 </Unit4> … … 89 87 <CursorPos X="24" Y="48"/> 90 88 <TopLine Value="25"/> 91 <EditorIndex Value=" 5"/>92 <UsageCount Value="3 2"/>89 <EditorIndex Value="4"/> 90 <UsageCount Value="39"/> 93 91 <Loaded Value="True"/> 94 92 </Unit5> … … 98 96 <CursorPos X="7" Y="11"/> 99 97 <TopLine Value="1"/> 100 <UsageCount Value="1 9"/>98 <UsageCount Value="18"/> 101 99 </Unit6> 102 100 <Unit7> … … 104 102 <CursorPos X="15" Y="743"/> 105 103 <TopLine Value="728"/> 106 <UsageCount Value="1 4"/>104 <UsageCount Value="13"/> 107 105 </Unit7> 108 106 <Unit8> … … 110 108 <CursorPos X="16" Y="324"/> 111 109 <TopLine Value="322"/> 112 <UsageCount Value="1 4"/>110 <UsageCount Value="13"/> 113 111 </Unit8> 114 112 <Unit9> … … 116 114 <CursorPos X="10" Y="89"/> 117 115 <TopLine Value="70"/> 118 <UsageCount Value=" 9"/>116 <UsageCount Value="8"/> 119 117 </Unit9> 120 118 <Unit10> … … 123 121 <UnitName Value="UVoidParser"/> 124 122 <CursorPos X="9" Y="69"/> 125 <TopLine Value=" 52"/>126 <EditorIndex Value=" 3"/>127 <UsageCount Value="3 2"/>123 <TopLine Value="7"/> 124 <EditorIndex Value="2"/> 125 <UsageCount Value="39"/> 128 126 <Loaded Value="True"/> 129 127 </Unit10> … … 132 130 <CursorPos X="5" Y="370"/> 133 131 <TopLine Value="365"/> 134 <UsageCount Value=" 10"/>132 <UsageCount Value="9"/> 135 133 </Unit11> 136 134 </Units> … … 138 136 <Position1> 139 137 <Filename Value="UCompilator.pas"/> 140 <Caret Line=" 86" Column="1" TopLine="71"/>138 <Caret Line="110" Column="1" TopLine="94"/> 141 139 </Position1> 142 140 <Position2> 143 141 <Filename Value="UCompilator.pas"/> 144 <Caret Line=" 88" Column="1" TopLine="73"/>142 <Caret Line="111" Column="1" TopLine="95"/> 145 143 </Position2> 146 144 <Position3> 147 145 <Filename Value="UCompilator.pas"/> 148 <Caret Line=" 86" Column="22" TopLine="74"/>146 <Caret Line="112" Column="1" TopLine="96"/> 149 147 </Position3> 150 148 <Position4> 151 149 <Filename Value="UCompilator.pas"/> 152 <Caret Line=" 48" Column="1" TopLine="33"/>150 <Caret Line="106" Column="24" TopLine="97"/> 153 151 </Position4> 154 152 <Position5> 155 153 <Filename Value="UCompilator.pas"/> 156 <Caret Line="8 3" Column="1" TopLine="68"/>154 <Caret Line="80" Column="1" TopLine="64"/> 157 155 </Position5> 158 156 <Position6> 159 157 <Filename Value="UCompilator.pas"/> 160 <Caret Line="8 4" Column="1" TopLine="69"/>158 <Caret Line="81" Column="1" TopLine="65"/> 161 159 </Position6> 162 160 <Position7> 163 161 <Filename Value="UCompilator.pas"/> 164 <Caret Line="8 5" Column="1" TopLine="70"/>162 <Caret Line="82" Column="1" TopLine="66"/> 165 163 </Position7> 166 164 <Position8> 167 165 <Filename Value="UCompilator.pas"/> 168 <Caret Line="8 6" Column="1" TopLine="71"/>166 <Caret Line="83" Column="1" TopLine="67"/> 169 167 </Position8> 170 168 <Position9> 171 169 <Filename Value="UCompilator.pas"/> 172 <Caret Line="8 8" Column="1" TopLine="73"/>170 <Caret Line="84" Column="1" TopLine="68"/> 173 171 </Position9> 174 172 <Position10> 175 173 <Filename Value="UCompilator.pas"/> 176 <Caret Line="8 9" Column="1" TopLine="74"/>174 <Caret Line="85" Column="1" TopLine="69"/> 177 175 </Position10> 178 176 <Position11> 179 177 <Filename Value="UCompilator.pas"/> 180 <Caret Line=" 90" Column="1" TopLine="75"/>178 <Caret Line="86" Column="1" TopLine="70"/> 181 179 </Position11> 182 180 <Position12> 183 181 <Filename Value="UCompilator.pas"/> 184 <Caret Line=" 91" Column="1" TopLine="76"/>182 <Caret Line="87" Column="1" TopLine="71"/> 185 183 </Position12> 186 184 <Position13> 187 185 <Filename Value="UCompilator.pas"/> 188 <Caret Line=" 93" Column="1" TopLine="78"/>186 <Caret Line="89" Column="1" TopLine="73"/> 189 187 </Position13> 190 188 <Position14> 191 189 <Filename Value="UCompilator.pas"/> 192 <Caret Line="9 4" Column="1" TopLine="79"/>190 <Caret Line="90" Column="1" TopLine="74"/> 193 191 </Position14> 194 192 <Position15> 195 193 <Filename Value="UCompilator.pas"/> 196 <Caret Line="9 5" Column="1" TopLine="80"/>194 <Caret Line="91" Column="1" TopLine="75"/> 197 195 </Position15> 198 196 <Position16> 199 197 <Filename Value="UCompilator.pas"/> 200 <Caret Line="9 7" Column="1" TopLine="82"/>198 <Caret Line="92" Column="1" TopLine="76"/> 201 199 </Position16> 202 200 <Position17> 203 201 <Filename Value="UCompilator.pas"/> 204 <Caret Line="9 9" Column="1" TopLine="84"/>202 <Caret Line="94" Column="1" TopLine="78"/> 205 203 </Position17> 206 204 <Position18> 207 205 <Filename Value="UCompilator.pas"/> 208 <Caret Line=" 100" Column="1" TopLine="85"/>206 <Caret Line="95" Column="1" TopLine="79"/> 209 207 </Position18> 210 208 <Position19> 211 209 <Filename Value="UCompilator.pas"/> 212 <Caret Line=" 102" Column="1" TopLine="87"/>210 <Caret Line="96" Column="1" TopLine="80"/> 213 211 </Position19> 214 212 <Position20> 215 213 <Filename Value="UCompilator.pas"/> 216 <Caret Line=" 106" Column="1" TopLine="91"/>214 <Caret Line="98" Column="1" TopLine="82"/> 217 215 </Position20> 218 216 <Position21> 219 217 <Filename Value="UCompilator.pas"/> 220 <Caret Line="10 7" Column="1" TopLine="92"/>218 <Caret Line="100" Column="1" TopLine="84"/> 221 219 </Position21> 222 220 <Position22> 223 221 <Filename Value="UCompilator.pas"/> 224 <Caret Line="10 9" Column="1" TopLine="94"/>222 <Caret Line="101" Column="1" TopLine="85"/> 225 223 </Position22> 226 224 <Position23> 227 225 <Filename Value="UCompilator.pas"/> 228 <Caret Line="1 10" Column="1" TopLine="95"/>226 <Caret Line="103" Column="1" TopLine="87"/> 229 227 </Position23> 230 228 <Position24> 231 229 <Filename Value="UCompilator.pas"/> 232 <Caret Line="1 11" Column="1" TopLine="96"/>230 <Caret Line="107" Column="1" TopLine="91"/> 233 231 </Position24> 234 232 <Position25> 235 233 <Filename Value="UCompilator.pas"/> 236 <Caret Line="1 12" Column="1" TopLine="97"/>234 <Caret Line="108" Column="1" TopLine="92"/> 237 235 </Position25> 238 236 <Position26> 239 237 <Filename Value="UCompilator.pas"/> 240 <Caret Line="11 4" Column="1" TopLine="99"/>238 <Caret Line="110" Column="1" TopLine="94"/> 241 239 </Position26> 242 240 <Position27> 243 241 <Filename Value="UCompilator.pas"/> 244 <Caret Line=" 68" Column="1" TopLine="38"/>242 <Caret Line="111" Column="1" TopLine="95"/> 245 243 </Position27> 246 244 <Position28> 247 245 <Filename Value="UCompilator.pas"/> 248 <Caret Line=" 49" Column="1" TopLine="34"/>246 <Caret Line="112" Column="1" TopLine="96"/> 249 247 </Position28> 250 248 <Position29> 251 249 <Filename Value="UCompilator.pas"/> 252 <Caret Line=" 50" Column="1" TopLine="35"/>250 <Caret Line="113" Column="1" TopLine="97"/> 253 251 </Position29> 254 252 <Position30> 255 253 <Filename Value="UCompilator.pas"/> 256 <Caret Line=" 52" Column="1" TopLine="37"/>254 <Caret Line="114" Column="1" TopLine="98"/> 257 255 </Position30> 258 256 </JumpHistory> … … 280 278 </CompilerOptions> 281 279 <Debugging> 282 <BreakPoints Count=" 2">280 <BreakPoints Count="1"> 283 281 <Item1> 284 282 <Source Value="UCompilator.pas"/> 285 <Line Value=" 47"/>283 <Line Value="84"/> 286 284 </Item1> 287 <Item2>288 <Source Value="UCompilator.pas"/>289 <Line Value="83"/>290 </Item2>291 285 </BreakPoints> 292 286 <Exceptions Count="3">
Note:
See TracChangeset
for help on using the changeset viewer.