1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
use crate::toolshed::{ Arena, };
use crate::version::ECMAScriptVersion;
use crate::error::{ ErrorKind, Error, };
use crate::lexer::Lexer;
use crate::lexer::span::{ Loc, Span, LineColumn, };
use crate::lexer::token::{ Token, Punctuator, Identifier, LiteralString, LiteralNumeric, };
use crate::lexer::operator::{ PrefixOperator, InfixOperator, PostfixOperator, AssignmentOperator, };
use crate::lexer::punctuator::PunctuatorKind;
use crate::lexer::keyword::KeywordKind;
use crate::lexer::LexerErrorKind;
use crate::parser::parser::Parser;
use crate::parser::parser::ParserErrorKind::{ self, * };
use crate::ast::numberic::{ Numberic, Float, };
use crate::ast::statement::{
Statement,
VariableStatement, LexicalDeclarationKind, LexicalBinding,
};
use crate::ast::expression::{
Expression, LiteralTemplateExpression,
PrefixExpression, InfixExpression, PostfixExpression, AssignmentExpression,
MemberExpression, NewTargetExpression, NewExpression,
ConditionalExpression, YieldExpression, CommaExpression,
TaggedTemplateExpression, SpreadExpression, ParenthesizedExpression,
CallExpression,
};
use crate::ast::function::{ FunctionExpression, Function, ArrowFunctionExpression, ConciseBody, };
use crate::ast::class::{
ClassDeclaration, ClassExpression, Class, ClassMethodDefinition,
MethodDefinition, Method, Getter, Setter,
};
use crate::ast::pattern::{
PropertyName, PropertyDefinition,
BindingPattern, ObjectBindingPattern, ArrayBindingPattern, BindingRestElement, BindingElement, BindingProperty,
AssignmentPattern, ObjectAssignmentPattern, ArrayAssignmentPattern, AssignmentElement, AssignmentProperty,
ObjectLiteral, ArrayLiteral,
};
impl<'ast> Parser<'ast> {
pub fn parse_object(&mut self, token: Token<'ast>) -> Result<Expression<'ast>, Error> {
unimplemented!()
}
pub fn parse_array(&mut self, token: Token<'ast>) -> Result<Expression<'ast>, Error> {
unimplemented!()
}
}