javascript

package
v1.2.6-sp8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

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

func NewJavaScriptWalker(handlers ...func(ast.Node)) *walker

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).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL