0 Replies Latest reply on Jun 10, 2009 10:53 PM by pmd12345

    [svn:fx-trunk] 7736:

    pmd12345 Level 1

      Revision: 7736

      Author:   peted@adobe.com

      Date:     2009-06-10 22:53:07 -0700 (Wed, 10 Jun 2009)

       

      Log Message:

      ***********

       

      Changes to the Asc parser & scanner.

      These are mostly about simplifying the parser/scanner interface, fixes to parser syntax error handling and use of an array for binary precedence lookup.

      Also, a lot of changes to asc-tests, since error format changed slightly.

      I don?\226?\128?\153t expect much in overall performance improvements, since the parser uses less than 2% of compile time.

       

      Note that tests based on matching prior syntax error messages may fail.

       

       

      QE Notes: All possible test cases should be run

      Doc Notes: None

      Reviewer: Gaurav

      tests: checkintests tamarin, asc-tests, performance tests

       

      Modified Paths:

      **************

          flex/sdk/trunk/modules/asc/src/java/macromedia/asc/parser/Parser.java

          flex/sdk/trunk/modules/asc/src/java/macromedia/asc/parser/Scanner.java

          flex/sdk/trunk/modules/asc/src/java/macromedia/asc/parser/Tokens.java

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/Classes/ClassDef/ClassKeywordErr .err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/Function/EmptyNameErr18.err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/Function/EmptyNameErr2.err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/Function/EmptyNameErr74.err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/Function/FreeFloatingFuncBodyErr .err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/Function/StaticNameErr18.err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/Function/StaticNameErr2.err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/Function/StaticNameErr74.err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/Function/StaticPublicNameErr18.e rr

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/Function/StaticPublicNameErr2.er r

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/Function/StaticPublicNameErr23.e rr

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/Function/StaticPublicNameErr74.e rr

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/Function/ThreeOptArgFunctionErr2 .err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/FunctionAccessors/EmptyNameErr17 .err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/FunctionAccessors/EmptyNameErr18 .err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/FunctionAccessors/EmptyNameErr2. err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/FunctionAccessors/EmptyNameErr23 .err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/FunctionAccessors/EmptyNameErr36 .err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/FunctionAccessors/EmptyNameErr38 .err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/FunctionAccessors/EmptyNameErr40 .err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/FunctionAccessors/EmptyNameErr41 .err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/FunctionAccessors/EmptyNameErr42 .err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/FunctionAccessors/EmptyNameErr44 .err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/FunctionAccessors/EmptyNameErr45 .err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/FunctionAccessors/EmptyNameErr46 .err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/FunctionAccessors/EmptyNameErr47 .err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/FunctionAccessors/EmptyNameErr50 .err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/FunctionAccessors/EmptyNameErr52 .err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/FunctionAccessors/EmptyNameErr53 .err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/FunctionAccessors/EmptyNameErr54 .err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/FunctionAccessors/EmptyNameErr55 .err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/FunctionAccessors/EmptyNameErr56 .err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/FunctionAccessors/EmptyNameErr57 .err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/FunctionAccessors/EmptyNameErr58 .err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/FunctionAccessors/EmptyNameErr59 .err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/FunctionAccessors/EmptyNameErr60 .err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/FunctionAccessors/EmptyNameErr61 .err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/FunctionAccessors/EmptyNameErr62 .err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/FunctionAccessors/EmptyNameErr64 .err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/FunctionAccessors/EmptyNameErr65 .err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/FunctionAccessors/EmptyNameErr66 .err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/FunctionAccessors/EmptyNameErr68 .err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/FunctionAccessors/EmptyNameErr69 .err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/FunctionAccessors/EmptyNameErr70 .err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/FunctionAccessors/EmptyNameErr71 .err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/FunctionAccessors/EmptyNameErr72 .err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/FunctionAccessors/EmptyNameErr73 .err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/FunctionAccessors/EmptyNameErr74 .err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/Packages/NamespacePackageErr.err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/Packages/PackageNameAtErr.err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/Packages/ReturnInPackageErr.err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/const/ConstAsFunctionArgErr.err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/const/ConstRedefineErr.err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Directives/Attributes/CTA/IllegalErr.err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Directives/usenamespace/IllegalIdentifiersAt Err.err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Directives/usenamespace/IllegalIdentifiersIl legalCharErr.err

          flex/sdk/trunk/modules/asc/test/compiler/as3/Expressions/isOperator/isOpMissingValueErr.e rr

          flex/sdk/trunk/modules/asc/test/compiler/as3/LocalizedErrors/1038-BreakTargetNotFound.err

          flex/sdk/trunk/modules/asc/test/compiler/as3/LocalizedErrors/1039-ContinueTargetNotFound. err

          flex/sdk/trunk/modules/asc/test/compiler/as3/LocalizedErrors/1051-ReturnInVoidMethod.err

          flex/sdk/trunk/modules/asc/test/compiler/as3/LocalizedErrors/1084-ExpectTokenBeforeErr.er r

          flex/sdk/trunk/modules/asc/test/compiler/as3/LocalizedErrors/1149-ReturnErr.err

          flex/sdk/trunk/modules/asc/test/compiler/as3/LocalizedErrors/1159-ReturnInPackageErr.err

          flex/sdk/trunk/modules/asc/test/compiler/as3/LocalizedErrors/1177-ReturnInGlobalErr.err

          flex/sdk/trunk/modules/asc/test/compiler/as3/LocalizedErrors/1190-BaseClassNotCTCErr.err

          flex/sdk/trunk/modules/asc/test/compiler/as3/LocalizedErrors/1196-NoExpressionAfterThrow. err

          flex/sdk/trunk/modules/asc/test/compiler/bugs/ASC-1638.err

          flex/sdk/trunk/modules/asc/test/compiler/bugs/ASC-3250.err

          flex/sdk/trunk/modules/asc/test/compiler/ecma3/e10_1_4_3_Err.err

          flex/sdk/trunk/modules/asc/test/compiler/ecma3/e10_1_4_4_Err.err

          flex/sdk/trunk/modules/asc/test/compiler/ecma3/e10_1_4_5_Err.err

          flex/sdk/trunk/modules/asc/test/compiler/ecma3/e10_1_4_6_Err.err

          flex/sdk/trunk/modules/asc/test/compiler/ecma3/e10_1_4_7_Err.err

          flex/sdk/trunk/modules/asc/test/compiler/ecma3/e12_8_1_Err.err

          flex/sdk/trunk/modules/asc/test/compiler/ecma3/e12_9_1_Err.err

          flex/sdk/trunk/modules/asc/test/compiler/ecma3/e7_3_13_Err.err

          flex/sdk/trunk/modules/asc/test/compiler/ecma3/e7_5_8_Err.err

          flex/sdk/trunk/modules/asc/test/compiler/ecma3/e7_8_3_Err.err

          flex/sdk/trunk/modules/asc/test/compiler/ecma3/e7_8_4_Err.err

          flex/sdk/trunk/modules/asc/test/compiler/es4/conditionalcompilation/nonExistantConfigVar. err

          flex/sdk/trunk/modules/asc/test/compiler/testconfig.txt