1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
3 * ***** BEGIN LICENSE BLOCK *****
4 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
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/
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
16 * The Original Code is Mozilla Communicator client code, released
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.
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.
38 * ***** END LICENSE BLOCK ***** */
42 ASTDEF(AST_PROGRAM, "Program")
44 ASTDEF(AST_IDENTIFIER, "Identifier")
45 ASTDEF(AST_LITERAL, "Literal")
46 ASTDEF(AST_PROPERTY, "Property")
48 ASTDEF(AST_FUNC_DECL, "FunctionDeclaration")
49 ASTDEF(AST_VAR_DECL, "VariableDeclaration")
50 ASTDEF(AST_VAR_DTOR, "VariableDeclarator")
52 ASTDEF(AST_LIST_EXPR, "SequenceExpression")
53 ASTDEF(AST_COND_EXPR, "ConditionalExpression")
54 ASTDEF(AST_UNARY_EXPR, "UnaryExpression")
55 ASTDEF(AST_BINARY_EXPR, "BinaryExpression")
56 ASTDEF(AST_ASSIGN_EXPR, "AssignmentExpression")
57 ASTDEF(AST_LOGICAL_EXPR, "LogicalExpression")
58 ASTDEF(AST_UPDATE_EXPR, "UpdateExpression")
59 ASTDEF(AST_NEW_EXPR, "NewExpression")
60 ASTDEF(AST_CALL_EXPR, "CallExpression")
61 ASTDEF(AST_MEMBER_EXPR, "MemberExpression")
62 ASTDEF(AST_FUNC_EXPR, "FunctionExpression")
63 ASTDEF(AST_ARRAY_EXPR, "ArrayExpression")
64 ASTDEF(AST_OBJECT_EXPR, "ObjectExpression")
65 ASTDEF(AST_THIS_EXPR, "ThisExpression")
66 ASTDEF(AST_GRAPH_EXPR, "GraphExpression")
67 ASTDEF(AST_GRAPH_IDX_EXPR, "GraphIndexExpression")
68 ASTDEF(AST_COMP_EXPR, "ComprehensionExpression")
69 ASTDEF(AST_GENERATOR_EXPR, "GeneratorExpression")
70 ASTDEF(AST_YIELD_EXPR, "YieldExpression")
72 ASTDEF(AST_EMPTY_STMT, "EmptyStatement")
73 ASTDEF(AST_BLOCK_STMT, "BlockStatement")
74 ASTDEF(AST_EXPR_STMT, "ExpressionStatement")
75 ASTDEF(AST_LAB_STMT, "LabeledStatement")
76 ASTDEF(AST_IF_STMT, "IfStatement")
77 ASTDEF(AST_SWITCH_STMT, "SwitchStatement")
78 ASTDEF(AST_WHILE_STMT, "WhileStatement")
79 ASTDEF(AST_DO_STMT, "DoWhileStatement")
80 ASTDEF(AST_FOR_STMT, "ForStatement")
81 ASTDEF(AST_FOR_IN_STMT, "ForInStatement")
82 ASTDEF(AST_BREAK_STMT, "BreakStatement")
83 ASTDEF(AST_CONTINUE_STMT, "ContinueStatement")
84 ASTDEF(AST_WITH_STMT, "WithStatement")
85 ASTDEF(AST_RETURN_STMT, "ReturnStatement")
86 ASTDEF(AST_TRY_STMT, "TryStatement")
87 ASTDEF(AST_THROW_STMT, "ThrowStatement")
88 ASTDEF(AST_DEBUGGER_STMT, "DebuggerStatement")
90 ASTDEF(AST_CASE, "SwitchCase")
91 ASTDEF(AST_CATCH, "CatchClause")
92 ASTDEF(AST_COMP_BLOCK, "ComprehensionBlock")
94 ASTDEF(AST_ARRAY_PATT, "ArrayPattern")
95 ASTDEF(AST_OBJECT_PATT, "ObjectPattern")
97 ASTDEF(AST_XMLANYNAME, "XMLAnyName")
98 ASTDEF(AST_XMLATTR_SEL, "XMLAttributeSelector")
99 ASTDEF(AST_XMLESCAPE, "XMLEscape")
100 ASTDEF(AST_XMLFILTER, "XMLFilterExpression")
101 ASTDEF(AST_XMLDEFAULT, "XMLDefaultDeclaration")
102 ASTDEF(AST_XMLQUAL, "XMLQualifiedIdentifier")
103 ASTDEF(AST_XMLELEM, "XMLElement")
104 ASTDEF(AST_XMLTEXT, "XMLText")
105 ASTDEF(AST_XMLLIST, "XMLList")
106 ASTDEF(AST_XMLSTART, "XMLStartTag")
107 ASTDEF(AST_XMLEND, "XMLEndTag")
108 ASTDEF(AST_XMLPOINT, "XMLPointTag")
109 ASTDEF(AST_XMLNAME, "XMLName")
110 ASTDEF(AST_XMLATTR, "XMLAttribute")
111 ASTDEF(AST_XMLCDATA, "XMLCdata")
112 ASTDEF(AST_XMLCOMMENT, "XMLComment")
113 ASTDEF(AST_XMLPI, "XMLProcessingInstruction")
115 /* AST_LIMIT = last + 1 */