Hi
I added new keyword to moderate while - else (otherwise)
new codes is
Ex1:
while( I>5 ) do begin Dec(I); write(I); end otherwise write(' otherwise
while ');
Ex2:
if (I<10) then while( I>5 ) do begin Dec(I); write(I); end otherwise
write(' otherwise while ') else write(' IF ELSE ');
I need help to implement it
I added more info needed by compiler ,but I don't know what is
executionweight in pass_generate_code function of tcgwhilerepeatnode class
I check other classes and functions ;like (if,for,exit) node
pass_generate_code ,but I can't find relation between executionweight and
while.
please define it for me!
Thanks a lot.
On Thu, Oct 8, 2015 at 9:21 PM, MohsenTi <[email protected]> wrote:
> Thank you Sven,
> is there any documentation about freepascal compiler parts ?
>
> On Thu, Oct 8, 2015 at 8:27 PM, Sven Barth <[email protected]>
> wrote:
>
>> Am 08.10.2015 17:37 schrieb "MohsenTi" <[email protected]>:
>> >
>> > I know this issue but with changing some of structures, I can implement
>> it and now I only want testing adding features to compiler and don't care
>> about backward compatibility,just testing.
>>
>> I wouldn't integrate it in the compiler, but for playing around with the
>> language and learning the workings of the compiler it's okay. :)
>>
>> > I added some changes to compiler functions and classes like
>> pstatmnt.while_statement and nflw.twhilerepeatnode but need more
>> information about functions and units.
>>
>> At first glance those locations look correct. Anything specific you're
>> looking for now? Cause the compiler is quite large and I can't explain
>> everything to you just now ^^
>>
>> Regards,
>> Sven
>>
>> _______________________________________________
>> fpc-devel maillist - [email protected]
>> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
>>
>>
>
_______________________________________________
fpc-devel maillist - [email protected]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel