Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetStatementType ¶ added in v1.2.4
func GetStatementType(st interface{}) string
func NewJavaScriptWalker ¶
Types ¶
type ASTWalkerResult ¶
type ASTWalkerResult struct { StringLiteral []string Int64Literal []int64 Float64Literal []float64 Identifies []string BadSyntax []string }
func BasicJavaScriptASTWalker ¶
func BasicJavaScriptASTWalker(code string) (*ASTWalkerResult, error)
Directories
¶
Path | Synopsis |
---|---|
Package otto is a JavaScript parser and interpreter written natively in Go.
|
Package otto is a JavaScript parser and interpreter written natively in Go. |
ast
Package ast declares types representing a JavaScript AST.
|
Package ast declares types representing a JavaScript AST. |
dbg
Package dbg is a println/printf/log-debugging utility library.
|
Package dbg is a println/printf/log-debugging utility library. |
file
Package file encapsulates the file abstractions used by the ast & parser.
|
Package file encapsulates the file abstractions used by the ast & parser. |
parser
Package parser implements a parser for JavaScript.
|
Package parser implements a parser for JavaScript. |
registry
Package registry is an expirmental package to facillitate altering the otto runtime via import.
|
Package registry is an expirmental package to facillitate altering the otto runtime via import. |
token
Package token defines constants representing the lexical tokens of JavaScript (ECMA5).
|
Package token defines constants representing the lexical tokens of JavaScript (ECMA5). |
Click to show internal directories.
Click to hide internal directories.