Fixed and+dowhile on ASC2 - precontinue can use stack.

This commit is contained in:
Jindra Petřík
2021-02-01 06:30:11 +01:00
parent d6cdd54a94
commit d03c64d43d
17 changed files with 60 additions and 9 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,3 @@
@echo off
set COMPILERKIND=air
call c:\air\bin\mxmlc.bat -warnings=false -debug=true -output bin/Main.%COMPILERKIND%.swf src/Main.as 1> buildlog.%COMPILERKIND%.txt 2>&1

View File

@@ -0,0 +1,3 @@
@echo off
set COMPILERKIND=flex
c:\flex\bin\mxmlc.exe -warnings=false -debug=true -output bin/Main.%COMPILERKIND%.swf src/Main.as 1> buildlog.%COMPILERKIND%.txt 2>&1

View File

@@ -4,7 +4,7 @@
<output>
<movie outputType="Application" />
<movie input="" />
<movie path="bin\flashdevelop.swf" />
<movie path="bin\Main.flex.swf" />
<movie fps="30" />
<movie width="800" />
<movie height="600" />
@@ -12,6 +12,7 @@
<movie minorVersion="0" />
<movie platform="Flash Player" />
<movie background="#FFFFFF" />
<movie preferredSDK="Flex 4.6.0, AIR 3.1;4.6.0, 3.1;" />
</output>
<!-- Other classes to be compiled into your SWF -->
<classpaths>
@@ -81,7 +82,7 @@
<!-- Executed before build -->
<preBuildCommand />
<!-- Executed after build -->
<postBuildCommand alwaysRun="False" />
<postBuildCommand alwaysRun="False">build_air_debug.bat</postBuildCommand>
<!-- Other project options -->
<options>
<option showHiddenPaths="False" />

View File

@@ -3,6 +3,8 @@
<!--Any modifications you make may be lost.-->
<flex-config>
<target-player>25.0</target-player>
<benchmark>false</benchmark>
<static-link-runtime-shared-libraries>true</static-link-runtime-shared-libraries>
<compiler>
<define append="true">
<name>CONFIG::debug</name>
@@ -14,7 +16,7 @@
</define>
<define append="true">
<name>CONFIG::timeStamp</name>
<value>'29.01.2021'</value>
<value>'01.02.2021'</value>
</define>
<define append="true">
<name>CONFIG::air</name>

View File

@@ -16,7 +16,7 @@
</define>
<define append="true">
<name>CONFIG::timeStamp</name>
<value>'29.01.2021'</value>
<value>'01.02.2021'</value>
</define>
<define append="true">
<name>CONFIG::air</name>

View File

@@ -24,6 +24,7 @@ package
TestDefaultNotLastGrouped;
TestDoWhile;
TestDoWhile2;
TestDoWhile3;
TestExpressions;
TestFinallyZeroJump;
TestFor;

View File

@@ -0,0 +1,26 @@
package tests
{
/**
* ...
* @author JPEXS
*/
public class TestDoWhile3
{
private var ch:String;
public function run() : void
{
do
{
nextChar();
} while ( ch != '\n' && ch != '' )
}
private function nextChar() : void
{
trace("process next char");
}
}
}