0 Replies Latest reply on Jun 3, 2009 2:45 PM by pmd12345

    [svn:fx-trunk] 7540: Slight restructuring of the Asc parser/scanner, with the following changes:

    pmd12345 Level 1

      Revision: 7540

      Author:   peted@adobe.com

      Date:     2009-06-03 14:45:44 -0700 (Wed, 03 Jun 2009)

       

      Log Message:

      ***********

      Slight restructuring of the Asc parser/scanner, with the following changes:

       

      recursive list parses are rewritten as iterators

      A direct operator precedence parser is in place

      Context sensitive flags between the scanner and parser have been removed.

       

      The parsers about 1000 loc shorter, Slightly slower until I get precedence lookup simplified.

      Some asc tests have been updated, since syntax error behavior is slightly improved in some cases.

       

      QE Notes: All possible test cases should be run

      Doc Notes: None

      Reviewer: Paul

      tests: checkintests tamarin, asc-tests, performance tests

       

      Modified Paths:

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

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

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

          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/Token.java

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

          flex/sdk/trunk/modules/asc/src/java/macromedia/asc/util/Context.java

          flex/sdk/trunk/modules/asc/src/java/macromedia/asc/util/ContextStatics.java

          flex/sdk/trunk/modules/asc/src/java/macromedia/asc/util/NamespacesTable.java

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

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

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

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

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

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

          flex/sdk/trunk/modules/asc/test/compiler/e4x/TypeConversion/toXMLStringErr.err

          flex/sdk/trunk/modules/asc/test/compiler/sanity/strict/b115412.err