Merge mozilla-central and tracemonkey. (a=blockers)
[mozilla-central.git] / js / src / jsast.tbl
blob58155632f4545b69f38a1ebdb43e08d5b37e40e2
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2  *
3  * ***** BEGIN LICENSE BLOCK *****
4  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
5  *
6  * The contents of this file are subject to the Mozilla Public License Version
7  * 1.1 (the "License"); you may not use this file except in compliance with
8  * the License. You may obtain a copy of the License at
9  * http://www.mozilla.org/MPL/
10  *
11  * Software distributed under the License is distributed on an "AS IS" basis,
12  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
13  * for the specific language governing rights and limitations under the
14  * License.
15  *
16  * The Original Code is Mozilla Communicator client code, released
17  * March 31, 1998.
18  *
19  * The Initial Developer of the Original Code is
20  * Netscape Communications Corporation.
21  * Portions created by the Initial Developer are Copyright (C) 1998
22  * the Initial Developer. All Rights Reserved.
23  *
24  * Contributor(s):
25  *
26  * Alternatively, the contents of this file may be used under the terms of
27  * either of the GNU General Public License Version 2 or later (the "GPL"),
28  * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
29  * in which case the provisions of the GPL or the LGPL are applicable instead
30  * of those above. If you wish to allow use of your version of this file only
31  * under the terms of either the GPL or the LGPL, and not to allow others to
32  * use your version of this file under the terms of the MPL, indicate your
33  * decision by deleting the provisions above and replace them with the notice
34  * and other provisions required by the GPL or the LGPL. If you do not delete
35  * the provisions above, a recipient may use your version of this file under
36  * the terms of any one of the MPL, the GPL or the LGPL.
37  *
38  * ***** END LICENSE BLOCK ***** */
40 /* AST_ERROR = -1 */
42 ASTDEF(AST_PROGRAM,               "Program",                       "program")
44 ASTDEF(AST_IDENTIFIER,            "Identifier",                    "identifier")
45 ASTDEF(AST_LITERAL,               "Literal",                       "literal")
46 ASTDEF(AST_PROPERTY,              "Property",                      "property")
48 ASTDEF(AST_FUNC_DECL,             "FunctionDeclaration",           "functionDeclaration")
49 ASTDEF(AST_VAR_DECL,              "VariableDeclaration",           "variableDeclaration")
50 ASTDEF(AST_VAR_DTOR,              "VariableDeclarator",            "variableDeclarator")
52 ASTDEF(AST_LIST_EXPR,             "SequenceExpression",            "sequenceExpression")
53 ASTDEF(AST_COND_EXPR,             "ConditionalExpression",         "conditionalExpression")
54 ASTDEF(AST_UNARY_EXPR,            "UnaryExpression",               "unaryExpression")
55 ASTDEF(AST_BINARY_EXPR,           "BinaryExpression",              "binaryExpression")
56 ASTDEF(AST_ASSIGN_EXPR,           "AssignmentExpression",          "assignmentExpression")
57 ASTDEF(AST_LOGICAL_EXPR,          "LogicalExpression",             "logicalExpression")
58 ASTDEF(AST_UPDATE_EXPR,           "UpdateExpression",              "updateExpression")
59 ASTDEF(AST_NEW_EXPR,              "NewExpression",                 "newExpression")
60 ASTDEF(AST_CALL_EXPR,             "CallExpression",                "callExpression")
61 ASTDEF(AST_MEMBER_EXPR,           "MemberExpression",              "memberExpression")
62 ASTDEF(AST_FUNC_EXPR,             "FunctionExpression",            "functionExpression")
63 ASTDEF(AST_ARRAY_EXPR,            "ArrayExpression",               "arrayExpression")
64 ASTDEF(AST_OBJECT_EXPR,           "ObjectExpression",              "objectExpression")
65 ASTDEF(AST_THIS_EXPR,             "ThisExpression",                "thisExpression")
66 ASTDEF(AST_GRAPH_EXPR,            "GraphExpression",               "graphExpression")
67 ASTDEF(AST_GRAPH_IDX_EXPR,        "GraphIndexExpression",          "graphIndexExpression")
68 ASTDEF(AST_COMP_EXPR,             "ComprehensionExpression",       "comprehensionExpression")
69 ASTDEF(AST_GENERATOR_EXPR,        "GeneratorExpression",           "generatorExpression")
70 ASTDEF(AST_YIELD_EXPR,            "YieldExpression",               "yieldExpression")
71 ASTDEF(AST_LET_EXPR,              "LetExpression",                 "letExpression")
73 ASTDEF(AST_EMPTY_STMT,            "EmptyStatement",                 "emptyStatement")
74 ASTDEF(AST_BLOCK_STMT,            "BlockStatement",                 "blockStatement")
75 ASTDEF(AST_EXPR_STMT,             "ExpressionStatement",            "expressionStatement")
76 ASTDEF(AST_LAB_STMT,              "LabeledStatement",               "labeledStatement")
77 ASTDEF(AST_IF_STMT,               "IfStatement",                    "ifStatement")
78 ASTDEF(AST_SWITCH_STMT,           "SwitchStatement",                "switchStatement")
79 ASTDEF(AST_WHILE_STMT,            "WhileStatement",                 "whileStatement")
80 ASTDEF(AST_DO_STMT,               "DoWhileStatement",               "doWhileStatement")
81 ASTDEF(AST_FOR_STMT,              "ForStatement",                   "forStatement")
82 ASTDEF(AST_FOR_IN_STMT,           "ForInStatement",                 "forInStatement")
83 ASTDEF(AST_BREAK_STMT,            "BreakStatement",                 "breakStatement")
84 ASTDEF(AST_CONTINUE_STMT,         "ContinueStatement",              "continueStatement")
85 ASTDEF(AST_WITH_STMT,             "WithStatement",                  "withStatement")
86 ASTDEF(AST_RETURN_STMT,           "ReturnStatement",                "returnStatement")
87 ASTDEF(AST_TRY_STMT,              "TryStatement",                   "tryStatement")
88 ASTDEF(AST_THROW_STMT,            "ThrowStatement",                 "throwStatement")
89 ASTDEF(AST_DEBUGGER_STMT,         "DebuggerStatement",              "debuggerStatement")
90 ASTDEF(AST_LET_STMT,              "LetStatement",                   "letStatement")
92 ASTDEF(AST_CASE,                  "SwitchCase",                     "switchCase")
93 ASTDEF(AST_CATCH,                 "CatchClause",                    "catchClause")
94 ASTDEF(AST_COMP_BLOCK,            "ComprehensionBlock",             "comprehensionBlock")
96 ASTDEF(AST_ARRAY_PATT,            "ArrayPattern",                   "arrayPattern")
97 ASTDEF(AST_OBJECT_PATT,           "ObjectPattern",                  "objectPattern")
98 ASTDEF(AST_PROP_PATT,             "Property",                       "propertyPattern")
100 ASTDEF(AST_XMLANYNAME,            "XMLAnyName",                     "xmlAnyName")
101 ASTDEF(AST_XMLATTR_SEL,           "XMLAttributeSelector",           "xmlAttributeSelector")
102 ASTDEF(AST_XMLESCAPE,             "XMLEscape",                      "xmlEscape")
103 ASTDEF(AST_XMLFILTER,             "XMLFilterExpression",            "xmlFilterExpression")
104 ASTDEF(AST_XMLDEFAULT,            "XMLDefaultDeclaration",          "xmlDefaultDeclaration")
105 ASTDEF(AST_XMLQUAL,               "XMLQualifiedIdentifier",         "xmlQualifiedIdentifier")
106 ASTDEF(AST_XMLFUNCQUAL,           "XMLFunctionQualifiedIdentifier", "xmlFunctionQualifiedIdentifier")
107 ASTDEF(AST_XMLELEM,               "XMLElement",                     "xmlElement")
108 ASTDEF(AST_XMLTEXT,               "XMLText",                        "xmlText")
109 ASTDEF(AST_XMLLIST,               "XMLList",                        "xmlList")
110 ASTDEF(AST_XMLSTART,              "XMLStartTag",                    "xmlStartTag")
111 ASTDEF(AST_XMLEND,                "XMLEndTag",                      "xmlEndTag")
112 ASTDEF(AST_XMLPOINT,              "XMLPointTag",                    "xmlPointTag")
113 ASTDEF(AST_XMLNAME,               "XMLName",                        "xmlName")
114 ASTDEF(AST_XMLATTR,               "XMLAttribute",                   "xmlAttribute")
115 ASTDEF(AST_XMLCDATA,              "XMLCdata",                       "xmlCdata")
116 ASTDEF(AST_XMLCOMMENT,            "XMLComment",                     "xmlComment")
117 ASTDEF(AST_XMLPI,                 "XMLProcessingInstruction",       "xmlProcessingInstruction")
119 /* AST_LIMIT = last + 1 */