Search
Preparing search index...
The search index is not available
meml
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
meml
Targets
Web
Class Web
Hierarchy
TargetBase
Web
Implements
ExprVisitor
<
Promise
<
EnvValidTypes
|
null
>
>
StmtVisitor
<
Promise
<
string
>
>
Index
Constructors
constructor
Properties
environment
exports
path
visit
Destructure
Expr
Methods
convert
destructure
Import
evaluate
evaluate
Binary
Expr
is
Equal
is
Truthy
visit
Array
Expr
visit
Binary
Expr
visit
Component
Stmt
visit
Export
Stmt
visit
Expression
Stmt
visit
For
Stmt
visit
Grouping
Expr
visit
Identifier
Expr
visit
IfStmt
visit
Import
Stmt
visit
Literal
Expr
visit
Meml
Properties
Expr
visit
Meml
Stmt
visit
Page
Stmt
visit
Unary
Expr
Constructors
constructor
new
Web
(
path
:
string
)
:
Web
Parameters
path:
string
Returns
Web
Properties
environment
environment
:
Environment
= ...
exports
exports
:
Map
<
string
,
EnvStore
>
= ...
path
path
:
string
visit
Destructure
Expr
visit
Destructure
Expr
:
(
expr
:
DestructureExpr
)
=>
Promise
<
string
|
number
|
boolean
>
Type declaration
(
expr
:
DestructureExpr
)
:
Promise
<
string
|
number
|
boolean
>
Parameters
expr:
DestructureExpr
Returns
Promise
<
string
|
number
|
boolean
>
Methods
convert
convert
(
token
:
PageStmt
)
:
Promise
<
string
>
Parameters
token:
PageStmt
Returns
Promise
<
string
>
Private
destructure
Import
destructure
Import
(
__namedParameters
:
{
contents
:
string
;
filePath
:
string
;
loader
:
ILoader
;
rawPath
:
string
;
stmt
:
ImportStmt
}
)
:
Promise
<
void
>
Parameters
__namedParameters:
{
contents
:
string
;
filePath
:
string
;
loader
:
ILoader
;
rawPath
:
string
;
stmt
:
ImportStmt
}
contents
:
string
file
Path
:
string
loader
:
ILoader
raw
Path
:
string
stmt
:
ImportStmt
Returns
Promise
<
void
>
evaluate
evaluate
(
expr
:
any
)
:
Promise
<
EnvValidTypes
>
Parameters
expr:
any
Returns
Promise
<
EnvValidTypes
>
Protected
evaluate
Binary
Expr
evaluate
Binary
Expr
(
expr
:
BinaryExpr
)
:
Promise
<
string
|
number
|
boolean
>
Parameters
expr:
BinaryExpr
Returns
Promise
<
string
|
number
|
boolean
>
Protected
is
Equal
is
Equal
(
left
:
EnvValidTypes
, right
:
EnvValidTypes
)
:
boolean
Parameters
left:
EnvValidTypes
right:
EnvValidTypes
Returns
boolean
Protected
is
Truthy
is
Truthy
(
obj
:
EnvValidTypes
)
:
boolean
Parameters
obj:
EnvValidTypes
Returns
boolean
visit
Array
Expr
visit
Array
Expr
(
expr
:
ArrayExpr
)
:
Promise
<
EnvValidTypes
[]
>
Parameters
expr:
ArrayExpr
Returns
Promise
<
EnvValidTypes
[]
>
visit
Binary
Expr
visit
Binary
Expr
(
expr
:
BinaryExpr
)
:
Promise
<
string
|
number
|
boolean
>
Parameters
expr:
BinaryExpr
Returns
Promise
<
string
|
number
|
boolean
>
visit
Component
Stmt
visit
Component
Stmt
(
stmt
:
ComponentStmt
)
:
Promise
<
string
>
Parameters
stmt:
ComponentStmt
Returns
Promise
<
string
>
visit
Export
Stmt
visit
Export
Stmt
(
stmt
:
ExportStmt
)
:
Promise
<
string
>
Parameters
stmt:
ExportStmt
Returns
Promise
<
string
>
visit
Expression
Stmt
visit
Expression
Stmt
(
stmt
:
ExpressionStmt
)
:
Promise
<
string
>
Parameters
stmt:
ExpressionStmt
Returns
Promise
<
string
>
visit
For
Stmt
visit
For
Stmt
(
stmt
:
ForStmt
)
:
Promise
<
string
>
Parameters
stmt:
ForStmt
Returns
Promise
<
string
>
visit
Grouping
Expr
visit
Grouping
Expr
(
expr
:
GroupingExpr
)
:
Promise
<
EnvValidTypes
>
Parameters
expr:
GroupingExpr
Returns
Promise
<
EnvValidTypes
>
visit
Identifier
Expr
visit
Identifier
Expr
(
expr
:
IdentifierExpr
)
:
Promise
<
string
|
number
|
boolean
>
Parameters
expr:
IdentifierExpr
Returns
Promise
<
string
|
number
|
boolean
>
visit
IfStmt
visit
IfStmt
(
stmt
:
IfStmt
)
:
Promise
<
string
>
Parameters
stmt:
IfStmt
Returns
Promise
<
string
>
visit
Import
Stmt
visit
Import
Stmt
(
stmt
:
ImportStmt
)
:
Promise
<
string
>
Parameters
stmt:
ImportStmt
Returns
Promise
<
string
>
visit
Literal
Expr
visit
Literal
Expr
(
expr
:
LiteralExpr
)
:
Promise
<
string
|
number
|
boolean
>
Parameters
expr:
LiteralExpr
Returns
Promise
<
string
|
number
|
boolean
>
visit
Meml
Properties
Expr
visit
Meml
Properties
Expr
(
expr
:
MemlPropertiesExpr
)
:
Promise
<
string
>
Parameters
expr:
MemlPropertiesExpr
Returns
Promise
<
string
>
visit
Meml
Stmt
visit
Meml
Stmt
(
stmt
:
MemlStmt
)
:
Promise
<
string
>
Parameters
stmt:
MemlStmt
Returns
Promise
<
string
>
visit
Page
Stmt
visit
Page
Stmt
(
stmt
:
PageStmt
)
:
Promise
<
string
>
Parameters
stmt:
PageStmt
Returns
Promise
<
string
>
visit
Unary
Expr
visit
Unary
Expr
(
expr
:
UnaryExpr
)
:
Promise
<
number
|
boolean
>
Parameters
expr:
UnaryExpr
Returns
Promise
<
number
|
boolean
>
Exports
Ast
Nodes
Loaders
Targets
Component
Definition
Environment
Target
Base
Web
constructor
environment
exports
path
visit
Destructure
Expr
convert
destructure
Import
evaluate
evaluate
Binary
Expr
is
Equal
is
Truthy
visit
Array
Expr
visit
Binary
Expr
visit
Component
Stmt
visit
Export
Stmt
visit
Expression
Stmt
visit
For
Stmt
visit
Grouping
Expr
visit
Identifier
Expr
visit
IfStmt
visit
Import
Stmt
visit
Literal
Expr
visit
Meml
Properties
Expr
visit
Meml
Stmt
visit
Page
Stmt
visit
Unary
Expr
Env
Store
Env
Valid
Types
Generated using
TypeDoc