Changeset 369d8ecb6239f8f96d0abe435a0b50d8fbaabb9a

Show
Ignore:
Timestamp:
06/28/09 23:36:49 (14 months ago)
Author:
mb0 <mb0@…>
Children:
85b4650e22de85722d0e932da31e0104e8a88327
Parents:
87f02d16be3ad1849f47a8a1e5c588a5924d4677
git-author:
mb0 <mb0@…> (06/05/09 02:44:14)
git-committer:
mb0 <mb0@…> (06/28/09 23:36:49)
Message:

unified some ast types that had different implementations for prfixes
added more fences to as3 syntax properties

Location:
org.axdt.as3/src/org/axdt/as3/imp/parser
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • org.axdt.as3/src/org/axdt/as3/imp/parser/AS3Parser.g

    r87f02d1 r369d8ec  
    527527 
    528528 --W  
    529 Substatement_abbrev 
     529Substatement_abbrev$Substatement 
    530530        ::= EmptyStatment 
    531531          | Statement_abbrev 
     
    533533          | Attributes --no_line_break$  
    534534                LCURLY$ Substatements RCURLY$ 
    535 Substatement_nosif 
     535Substatement_nosif$Substatement 
    536536        ::= EmptyStatment 
    537537          | Statement_nosif 
     
    539539          | Attributes --no_line_break$  
    540540                LCURLY$ Substatements RCURLY$ 
    541 Substatement_full 
     541Substatement_full$Substatement 
    542542        ::= EmptyStatment 
    543543          | Statement_full 
     
    641641DoStatement_full$DoStatement ::= do$ Substatement_abbrev$Statement while$ ParenListExpression$Condition Semicolon_full$ 
    642642 
    643 -- 15.17.2 While statement --W 
     643-- 15.7.2 While statement --W 
    644644WhileStatement_abbrev$WhileStatement  
    645645        ::= while$ ParenListExpression$Condition Substatement_abbrev$Statement 
     
    757757 
    758758-- 16 Directives --W 
    759 AnnotatedDirective_abbrev ::= Attributes --no_line_break$  
    760                                 AnnotatableDirective_abbrev 
    761                                 | AnnotatableDirective_abbrev 
     759AnnotatedDirective_abbrev  
     760        ::= Attributes --no_line_break$  
     761                AnnotatableDirective_abbrev 
     762        | AnnotatableDirective_abbrev 
    762763Directive_abbrev ::= AnnotatedDirective_abbrev 
    763764          | EmptyStatment 
     
    10671068%End 
    10681069 
     1070%Types 
     1071RelationalExpression ::= RelationalExpression_allowin | RelationalExpression_noin 
     1072 
     1073EqualityExpression ::= EqualityExpression_allowin | EqualityExpression_noin  
     1074 
     1075BitwiseAndExpression ::= BitwiseAndExpression_allowin | BitwiseAndExpression_noin 
     1076 
     1077BitwiseXorExpression ::= BitwiseXorExpression_allowin | BitwiseXorExpression_noin 
     1078 
     1079BitwiseOrExpression ::= BitwiseOrExpression_allowin | BitwiseOrExpression_noin 
     1080 
     1081LogicalAndExpression ::= LogicalAndExpression_allowin | LogicalAndExpression_noin 
     1082 
     1083LogicalOrExpression ::= LogicalOrExpression_allowin | LogicalOrExpression_noin 
     1084 
     1085ConditionalExpression ::= ConditionalExpression_allowin | ConditionalExpression_noin 
     1086 
     1087NonAssignmentExpression ::= NonAssignmentExpression_allowin | NonAssignmentExpression_noin 
     1088 
     1089AssignmentExpression ::= AssignmentExpression_allowin | AssignmentExpression_noin 
     1090 
     1091--AssignmentExpressionList ::= AssignmentExpression_allowinList | AssignmentExpression_noinList 
     1092 
     1093TypeExpression ::= TypeExpression_allowin | TypeExpression_noin 
     1094 
     1095Statement ::= Statement_abbrev | Statement_nosif | Statement_full 
     1096 
     1097Substatement ::= Substatement_abbrev | Substatement_nosif | Substatement_full 
     1098 
     1099Semicolon ::= Semicolon_abbrev | Semicolon_nosif | Semicolon_full 
     1100 
     1101ExpressionStatement ::= ExpressionStatement_abbrev | ExpressionStatement_nosif | ExpressionStatement_full 
     1102 
     1103SuperStatement ::= SuperStatement_abbrev | SuperStatement_nosif | SuperStatement_full 
     1104 
     1105LabeledStatement ::= LabeledStatement_abbrev | LabeledStatement_nosif | LabeledStatement_full 
     1106 
     1107IfStatement ::= IfStatement_abbrev | IfStatement_nosif | IfStatement_full 
     1108 
     1109DoStatement ::= DoStatement_abbrev | DoStatement_nosif | DoStatement_full 
     1110 
     1111WhileStatement ::= WhileStatement_abbrev | WhileStatement_nosif | WhileStatement_full 
     1112 
     1113ForStatement ::= ForStatement_abbrev | ForStatement_nosif | ForStatement_full 
     1114 
     1115ContinueStatement ::= ContinueStatement_abbrev | ContinueStatement_nosif | ContinueStatement_full 
     1116 
     1117BreakStatement ::= BreakStatement_abbrev | BreakStatement_nosif | BreakStatement_full 
     1118 
     1119WithStatement ::= WithStatement_abbrev | WithStatement_nosif | WithStatement_full 
     1120 
     1121ReturnStatement ::= ReturnStatement_abbrev | ReturnStatement_nosif | ReturnStatement_full 
     1122 
     1123ThrowStatement ::= ThrowStatement_abbrev | ThrowStatement_nosif | ThrowStatement_full 
     1124 
     1125VariableDefinitionSemi ::= VariableDefinitionSemi_abbrev | VariableDefinitionSemi_full 
     1126%End 
  • org.axdt.as3/src/org/axdt/as3/imp/parser/AS3SyntaxProperties.java

    rd941c7c r369d8ec  
    1919        public String[][] getFences() { 
    2020                return new String[][] { new String[] { "{", "}" }, 
    21                                 new String[] { "[", "]" }, new String[] { "(", ")" } }; 
     21                                new String[] { "[", "]" }, new String[] { "(", ")" }, 
     22                                new String[] { "/*", "*/" }, new String[] { "<", ">" } }; 
    2223        } 
    2324