Versions in this module Expand all Collapse all v0 v0.1.0 Sep 24, 2022 Changes in this version + const ARROW_DOWN_FINAL_CODE + const ARROW_LEFT_FINAL_CODE + const ARROW_RIGHT_FINAL_CODE + const ARROW_UP_FINAL_CODE + const ASSIGN_KEYWORD_SHOULD_BE_FOLLOWED_BY_IDENTS + const AT_SYMBOL_SHOULD_BE_FOLLOWED_BY + const A_NON_PAREN_CALL_EXPR_SHOULD_HAVE_ARGS_AND_CALLEE_SHOULD_BE_FOLLOWED_BY_SPACE + const BACKSPACE_CODE + const COMPUTE_TIME_TOTAL_LIMIT_NAME + const CONSTANT_COLOR + const CONST_KEYWORD_STR + const CONTENT_ARG_PROVIDED_TWICE + const CONTROL_KEYWORD_COLOR + const COOKIE_KV_KEY + const CSS_ATTRIBUTE_NAME_SHOULD_START_WITH_ALPHA_CHAR + const CTRL_BACKSPACE_CODE + const CTRL_C_CODE + const CTRL_LEFT_FINAL_CODE + const CTRL_RIGHT_FINAL_CODE + const DASH_SHOULD_BE_FOLLOWED_BY_OPTION_NAME + const DEFAULT_DIR_FMODE + const DEFAULT_EX_TIMEOUT_DURATION + const DEFAULT_FILE_FMODE + const DEFAULT_HTTP_CLIENT_TIMEOUT + const DEFAULT_MAX_STACK_HEIGHT + const DEFAULT_RW_FILE_FMODE + const DELETE_FINAL_CODE + const DEL_CODE + const DOT_SHOULD_BE_FOLLOWED_BY + const DOUBLE_DASH_SHOULD_BE_FOLLOWED_BY_OPTION_NAME + const DROP_PERM_KEYWORD_SHOULD_BE_FOLLOWED_BY + const EMPTY_CSS_SELECTOR + const END_FINAL_CODE + const ENTER_CODE + const ESCAPE_CODE + const EXECUTION_TOTAL_LIMIT_NAME + const FN_KEYWORD_OR_FUNC_NAME_SHOULD_BE_FOLLOWED_BY_PARAM_LIST + const FS_NEW_FILE_RATE_LIMIT_NAME + const FS_READ_LIMIT_NAME + const FS_READ_MIN_CHUNK_SIZE + const FS_TOTAL_NEW_FILE_LIMIT_NAME + const FS_WRITE_LIMIT_NAME + const FS_WRITE_MIN_CHUNK_SIZE + const GOSH_MIMETYPE + const HOME_FINAL_CODE + const HTML_CTYPE + const HTTP_HOST_LIT_CANNOT_CONTAIN_QUERY_PART + const HTTP_OPTION_OBJECT_PROVIDED_TWICE + const HTTP_PROFILE_OPTION_SHOULD_BE_AN_IDENT + const HTTP_REQUEST_RATE_LIMIT_NAME + const HTTP_URL_PATTERN + const IMPLICIT_KEY_LEN_KEY + const IMPORT_STMT_ALLOW_KEYWORD_SHOULD_FOLLOWED_BY_OBJ_LIT + const IMPORT_STMT_ARG_SHOULD_BE_AN_OBJECT_LIT + const IMPORT_STMT_ARG_SHOULD_BE_FOLLOWED_BY_ALLOW_KEYWORD + const IMPORT_STMT_CHECKSUM_SHOULD_BE_A_STRING_LIT + const IMPORT_STMT_IMPORT_KEYWORD_SHOULD_BE_FOLLOWED_BY_IDENT + const IMPORT_STMT_URL_SHOULD_BE_AN_URL_LIT + const INVALID_ASSIGN_A_PIPELINE_EXPR_WAS_EXPECTED_AFTER_PIPE + const INVALID_BIN_EXPR_NON_EXISTING_OPERATOR + const INVALID_CSS_CLASS_SELECTOR_INVALID_NAME + const INVALID_CSS_SELECTOR + const INVALID_ELEM_IN_OBJ_LIT + const INVALID_FLOAT_LIT + const INVALID_FOR_STMT + const INVALID_FOR_STMT_IN_KEYWORD_SHOULD_BE_FOLLOWED_BY_SPACE + const INVALID_FOR_STMT_MISSING_IN_KEYWORD + const INVALID_FOR_STMT_MISSING_VALUE_AFTER_IN + const INVALID_FUNC_SYNTAX + const INVALID_GLOBAL_CONST_DECLS_MISSING_CLOSING_PAREN + const INVALID_GLOBAL_CONST_DECLS_OPENING_PAREN_EXPECTED + const INVALID_GLOBAL_CONST_DECL_LHS_MUST_BE_AN_IDENT + const INVALID_HOST_ALIAS_DEF_MISSING_VALUE_AFTER_EQL_SIGN + const INVALID_HTTP_HOST_PATT + const INVALID_INT_LIT + const INVALID_MATCH_CASE_VALUE_EXPLANATION + const INVALID_PATH_INTERP_ERR + const INVALID_PATH_PATT_NAMED_SEGMENTS + const INVALID_PATTERN_INVALID_OCCURENCE_COUNT + const INVALID_PATT_UNION_ELEMENT_SEPARATOR_EXPLANATION + const INVALID_PIPE_STATE_ALL_STAGES_SHOULD_BE_CALLS + const INVALID_PSEUDO_CSS_SELECTOR_INVALID_NAME + const INVALID_QUERY + const INVALID_RATE_LIT + const INVALID_RATE_LIT_DIV_SYMBOL_SHOULD_BE_FOLLOWED_BY_IDENT + const INVALID_RUNE_LIT_INVALID_SINGLE_CHAR_ESCAPE + const INVALID_RUNE_LIT_NO_CHAR + const INVALID_RUNE_RANGE_EXPR + const INVALID_SLICE_EXPR_SINGLE_COLON + const INVALID_SPAWN_EXPR + const INVALID_SPAWN_EXPR_SR_SHOULD_BE_FOLLOWED_BY_TWO_EXPRS + const INVALID_SWITCH_CASE_VALUE_EXPLANATION + const INVALID_URL + const IO_TIME_TOTAL_LIMIT_NAME + const JSON_CTYPE + const KEY_LIST_CAN_ONLY_CONTAIN_IDENTS + const KEY_TOO_LONG + const LOOSE_HTTP_HOST_PATTERN_PATTERN + const LOOSE_URL_EXPR_PATTERN + const MAX_OBJECT_KEY_BYTE_LEN + const MAX_PATTERN_OCCURRENCE_COUNT + const MISSING_URL_ARG + const NO_TIMEOUT_OPTION_NAME + const NUMBER_LITERAL_COLOR + const ONLY_IDENTS_AND_STRINGS_VALID_OBJ_KEYS + const ONLY_IDENTS_AND_STRINGS_VALID_OBJ_PATT_KEYS + const OPTION_DOES_NOT_EXIST_FMT + const OPTION_NAME_CAN_ONLY_CONTAIN_ALPHANUM_CHARS + const OTHER_KEYWORD_COLOR + const PARAM_LIST_OF_FUNC_SHOULD_BE_FOLLOWED_BY_BLOCK + const PARAM_LIST_OF_FUNC_SHOULD_CONTAIN_VARS_SEP_BY_COMMAS + const PATH_ARG_PROVIDED_TWICE + const PATH_EXPR_INTERP_EXPLANATION + const PATH_INTERP_EXPLANATION + const PATH_LITERAL_COLOR + const PLAIN_TEXT_CTYPE + const QUERY_PARAM_INTERP_EXPLANATION + const REQUIRE_KEYWORD_STR + const RETURN_1_MODULE_HASH + const RETURN_GLOBAL_A_MODULE_HASH + const SPAWN_EXPR_ALLOW_KEYWORD_SHOULD_BE_FOLLOWED_BY_OBJ_LIT + const SPAWN_EXPR_ARG_SHOULD_BE_FOLLOWED_BY_ALLOW_KEYWORD + const SPREAD_ARGUMENT_CANNOT_BE_FOLLOWED_BY_ADDITIONAL_ARGS + const STRING_LITERAL_COLOR + const TAB_CODE + const TOKEN_BUCKET_CAPACITY_SCALE + const TOKEN_BUCKET_INTERVAL + const TRULY_MAX_STACK_HEIGHT + const UNTERMINATED_ALIAS_RELATED_LITERAL + const UNTERMINATED_ASSIGNMENT_MISSING_VALUE_AFTER_EQL_SIGN + const UNTERMINATED_BIN_EXPR_MISSING_OPERAND + const UNTERMINATED_BIN_EXPR_MISSING_OPERAND_OR_INVALID_OPERATOR + const UNTERMINATED_BIN_EXPR_MISSING_OPERATOR + const UNTERMINATED_BIN_EXPR_MISSING_PAREN + const UNTERMINATED_BLOCK_MISSING_BRACE + const UNTERMINATED_CALL + const UNTERMINATED_CALL_MISSING_CLOSING_PAREN + const UNTERMINATED_COMPLEX_PATT + const UNTERMINATED_CSS_ATTRIBUTE_SELECTOR_MISSING_BRACKET + const UNTERMINATED_CSS_ATTR_SELECTOR_INVALID_MATCHER + const UNTERMINATED_CSS_ATTR_SELECTOR_MATCHER_EXPECTED_AFTER_NAME + const UNTERMINATED_CSS_ATTR_SELECTOR_NAME_EXPECTED + const UNTERMINATED_CSS_CLASS_SELECTOR_NAME_EXPECTED + const UNTERMINATED_CSS_ID_SELECTOR_NAME_EXPECTED + const UNTERMINATED_EMBEDDED_MODULE + const UNTERMINATED_FOR_STMT + const UNTERMINATED_FOR_STMT_MISSING_BLOCK + const UNTERMINATED_GLOBAL_CONS_DECLS + const UNTERMINATED_IF_STMT_MISSING_BLOCK + const UNTERMINATED_IF_STMT_MISSING_BLOCK_AFTER_ELSE + const UNTERMINATED_INDEX_OR_SLICE_EXPR + const UNTERMINATED_INDEX_OR_SLICE_EXPR_MISSING_CLOSING_BRACKET + const UNTERMINATED_INT_RANGE_LIT + const UNTERMINATED_KEY_LIST_MISSING_BRACE + const UNTERMINATED_LIST_LIT_MISSING_BRACE + const UNTERMINATED_LIST_PATT_LIT_MISSING_BRACE + const UNTERMINATED_MATCH_CASE_MISSINGè_BLOCK + const UNTERMINATED_MATCH_STMT + const UNTERMINATED_MATCH_STMT_MISSING_BODY + const UNTERMINATED_MATCH_STMT_MISSING_CLOSING_BRACE + const UNTERMINATED_MATCH_STMT_MISSING_VALUE + const UNTERMINATED_MEMB_EXPR + const UNTERMINATED_MEMB_OR_INDEX_EXPR + const UNTERMINATED_MULTI_ASSIGN_MISSING_EQL_SIGN + const UNTERMINATED_OBJ_MISSING_CLOSING_BRACE + const UNTERMINATED_OBJ_PATT_MISSING_CLOSING_BRACE + const UNTERMINATED_OPION_EXPR_EQUAL_ASSIGN_SHOULD_BE_FOLLOWED_BY_EXPR + const UNTERMINATED_PARAM_LIST_MISSING_CLOSING_PAREN + const UNTERMINATED_PAREN_PATTERN + const UNTERMINATED_PAREN_PATTERN_MISSING_PAREN + const UNTERMINATED_PATH_INTERP + const UNTERMINATED_PATT_UNTERMINATED_EXACT_OCURRENCE_COUNT + const UNTERMINATED_PIPE_STMT_LAST_STAGE_EMPTY + const UNTERMINATED_QUERY_PARAM_INTERP + const UNTERMINATED_RUNE_LIT + const UNTERMINATED_RUNE_LIT_MISSING_QUOTE + const UNTERMINATED_SLICE_EXPR_MISSING_END_INDEX + const UNTERMINATED_STRING_LIT + const UNTERMINATED_SWITCH_CASE_MISSINGè_BLOCK + const UNTERMINATED_SWITCH_STMT + const UNTERMINATED_SWITCH_STMT_MISSING_BODY + const UNTERMINATED_SWITCH_STMT_MISSING_CLOSING_BRACE + const UNTERMINATED_SWITCH_STMT_MISSING_VALUE + const URL_EXPR_CANNOT_CONTAIN_INTERP_NEXT_TO_EACH_OTHER + const URL_EXPR_CANNOT_END_WITH_SLASH_3DOTS + const URL_LIKE_PATTERN_SUBSEQUENT_DOT_EXPLANATION + const URL_PATT_LITS_WITH_QUERY_PART_NOT_SUPPORTED_YET + const VARIADIC_PARAM_IS_UNIQUE_AND_SHOULD_BE_LAST_PARAM + var ALLOWED_PROMPT_FUNCTION_NAMES = []string + var BINARY_OPERATOR_STRINGS = []string + var BYTE_SLICE_TYPE = reflect.TypeOf(([]uint8)(nil)) + var COLOR_NAME_TO_COLOR = map[Identifier]termenv.Color + var CTX_PTR_TYPE = reflect.TypeOf(&Context{}) + var DEFAULT_HTTP_REQUEST_OPTIONS = &HttpRequestOptions + var DEFAULT_LIMITATIONS = []Limitation + var ERROR_INTERFACE_TYPE = reflect.TypeOf((*error)(nil)).Elem() + var FILE_EXTENSION_TO_MIMETYPE = map[string]mimetype + var HTTP_URL_REGEX = regexp.MustCompile(HTTP_URL_PATTERN) + var ITERABLE_INTERFACE_TYPE = reflect.TypeOf((*Iterable)(nil)).Elem() + var KEYWORDS = []string + var KEY_PRIORITY = map[string]int + var LOOSE_HTTP_HOST_PATTERN_REGEX = regexp.MustCompile(LOOSE_HTTP_HOST_PATTERN_PATTERN) + var LOOSE_URL_EXPR_PATTERN_REGEX = regexp.MustCompile(LOOSE_URL_EXPR_PATTERN) + var PERMISSION_KIND_STRINGS = []string + var RUNE_SLICE_TYPE = reflect.TypeOf(([]rune)(nil)) + func AtIndex(value interface{}, index int) (interface{}, error) + func CallFunc(calleeNode Node, state *State, arguments interface{}, must bool) (interface{}, error) + func CanonicalHost(host string) (string, error) + func Check(node Node) error + func Eval(node Node, state *State) (result interface{}, err error) + func ExtValOf(v interface{}, state *State) interface + func GetSlice(value interface{}, start, end int) (interface{}, error) + func HasPathLikeStart(s string) bool + func Is(s string) bool + func IsGoshVal(v interface{}) bool + func IsIndexKey(key string) bool + func IsPrint(s string) bool + func IsSimpleGoshVal(v interface{}) bool + func IsSimpleValueLiteral(node Node) bool + func Memb(value interface{}, name string) (interface{}, *reflect.Type, error) + func MustEval(node Node, state *State) interface + func NodeIs(node Node, typ interface{}) bool + func ReadParseScript(fpath string, defaultLimitations []Limitation, ...) (string, *Module, []Permission, []Limitation) + func RunScript(fpath string, passedArgs []string, perms string) (interface{}, error) + func SetAtIndex(value interface{}, index int, e interface{}) error + func SetSlice(value interface{}, start, end int, slice interface{}) error + func StartShell(state *State, ctx *Context, config REPLConfiguration) + func ToLower(s string) (lower string, ok bool) + func ToReflectVal(v interface{}) reflect.Value + func Traverse(v interface{}, fn func(interface{}) (TraversalAction, error), ...) (terror error) + func UnwrapReflectVal(v interface{}) interface + func ValOf(v interface{}) interface + func Walk(node Node, ...) (err error) + type AbsolutePathExpression struct + Slices []Node + type AbsolutePathLiteral struct + Value string + type AbsolutePathPatternLiteral struct + Value string + type Assignment struct + Left Node + Right Node + type AtHostLiteral struct + Value string + type BinaryExpression struct + Left Node + Operator BinaryOperator + Right Node + type BinaryOperator int + const Add + const AddF + const And + const Concat + const Div + const DivF + const Dot + const Equal + const ExclEndRange + const GreaterOrEqual + const GreaterOrEqualF + const GreaterThan + const GreaterThanF + const In + const Keyof + const LessOrEqual + const LessOrEqualF + const LessThan + const LessThanF + const Match + const Mul + const MulF + const NotEqual + const NotIn + const NotMatch + const Or + const Range + const Sub + const SubF + const Substrof + func (operator BinaryOperator) String() string + type Block struct + Statements []Node + type BooleanConversionExpression struct + Expr Node + type BooleanLiteral struct + Value bool + type BreakStatement struct + Label *IdentifierLiteral + type ByteCount int + type ByteRate int + type Call struct + Arguments []Node + Callee Node + Must bool + type Case struct + Block *Block + Value Node + type ColorizationInfo struct + type CommandPermission struct + CommandName string + SubcommandNameChain []string + func (perm CommandPermission) Includes(otherPerm Permission) bool + func (perm CommandPermission) Kind() PermissionKind + func (perm CommandPermission) String() string + type CommandResult struct + type Context struct + func NewContext(permissions []Permission, forbiddenPermissions []Permission, ...) *Context + func (ctx *Context) CheckHasPermission(perm Permission) error + func (ctx *Context) DropPermissions(droppedPermissions []Permission) + func (ctx *Context) GetDefaultHttpProfile() *HttpProfile + func (ctx *Context) GetHttpProfile(name interface{}) (*HttpProfile, error) + func (ctx *Context) GetRate(name string) (ByteRate, error) + func (ctx *Context) HasPermission(perm Permission) bool + func (ctx *Context) NewWith(additionalPerms []Permission) (*Context, error) + func (ctx *Context) NewWithout(removedPerms []Permission) (*Context, error) + func (ctx *Context) SetHttpProfile(name Identifier, configObject Object) error + func (ctx *Context) Take(name string, count int64) + type ContextlessCallPermission struct + FuncMethodName string + ReceiverTypeName string + func (perm ContextlessCallPermission) Includes(otherPerm Permission) bool + func (perm ContextlessCallPermission) Kind() PermissionKind + func (perm ContextlessCallPermission) String() string + type ContinueStatement struct + Label *IdentifierLiteral + type CssAttributeSelector struct + AttributeName *IdentifierLiteral + Matcher string + Value Node + type CssClassSelector struct + Name string + type CssCombinator struct + Name string + type CssIdSelector struct + Name string + type CssPseudoClassSelector struct + Arguments []Node + Name string + type CssPseudoElementSelector struct + Name string + type CssSelectorExpression struct + Elements []Node + type CssTypeSelector struct + Name string + type CustomPermissionTypeHandler func(kind PermissionKind, name string, value Node) (perms []Permission, handled bool, err error) + type EmbeddedModule struct + Requirements *Requirements + Statements []Node + type EntryMatcher struct + Key Matcher + Value Matcher + type ExactSimpleValueMatcher struct + func (matcher ExactSimpleValueMatcher) Random() interface{} + func (matcher ExactSimpleValueMatcher) Regex() string + func (matcher ExactSimpleValueMatcher) Test(v interface{}) bool + type ExternalValue struct + type ExtractionExpression struct + Keys *KeyListExpression + Object Node + type FilesystemPermission struct + Entity interface{} + Kind_ PermissionKind + func (perm FilesystemPermission) Includes(otherPerm Permission) bool + func (perm FilesystemPermission) Kind() PermissionKind + func (perm FilesystemPermission) String() string + type FlagLiteral struct + Name string + SingleDash bool + type FloatLiteral struct + Raw string + Value float64 + type ForStatement struct + Body *Block + IteratedValue Node + KeyIndexIdent *IdentifierLiteral + ValueElemIdent *IdentifierLiteral + type Func Node + type FunctionDeclaration struct + Function *FunctionExpression + Name *IdentifierLiteral + type FunctionExpression struct + Body *Block + IsVariadic bool + Parameters []*FunctionParameter + Requirements *Requirements + func (expr FunctionExpression) NonVariadicParamCount() int + type FunctionParameter struct + IsVariadic bool + Var *IdentifierLiteral + type GenerativePattern interface + Random func() interface{} + type GlobalConstantDeclaration struct + Left *IdentifierLiteral + Right Node + type GlobalConstantDeclarations struct + Declarations []*GlobalConstantDeclaration + type GlobalVarPermission struct + Kind_ PermissionKind + Name string + func (perm GlobalVarPermission) Includes(otherPerm Permission) bool + func (perm GlobalVarPermission) Kind() PermissionKind + func (perm GlobalVarPermission) String() string + type GlobalVariable struct + Name string + type GroupMatcher interface + MatchGroups func(interface{}) (ok bool, groups map[string]interface{}) + type HTTPHost string + func (host HTTPHost) WithoutScheme() string + type HTTPHostLiteral struct + Value string + type HTTPHostPattern string + func (patt HTTPHostPattern) Test(v interface{}) bool + type HTTPHostPatternLiteral struct + Value string + type HostAliasDefinition struct + Left *AtHostLiteral + Right Node + type HttpPermission struct + Entity interface{} + Kind_ PermissionKind + func (perm HttpPermission) Includes(otherPerm Permission) bool + func (perm HttpPermission) Kind() PermissionKind + func (perm HttpPermission) String() string + type HttpProfile struct + Config HttpProfileConfig + Options HttpRequestOptions + type HttpProfileConfig struct + Headers http.Header + SaveCookies bool + Store KVStore + type HttpRequestOptions struct + InsecureSkipVerify bool + Jar http.CookieJar + Timeout time.Duration + type Identifier string + type IdentifierLiteral struct + Name string + type IdentifierMemberExpression struct + Left *IdentifierLiteral + PropertyNames []*IdentifierLiteral + type IfStatement struct + Alternate *Block + Consequent *Block + Test Node + type ImportStatement struct + ArgumentObject *ObjectLiteral + GrantedPermissions *ObjectLiteral + Identifier *IdentifierLiteral + URL *URLLiteral + ValidationString *StringLiteral + type IndexExpression struct + Index Node + Indexed Node + type IntLiteral struct + Raw string + Value int + type IntRange struct + End int + Start int + Step int + func (r IntRange) Iterator() Iterator + func (r IntRange) Random() interface{} + type IntRangeIterator struct + func (it *IntRangeIterator) GetNext(ctx *Context) interface{} + func (it IntRangeIterator) HasNext(*Context) bool + type IntegerRangeLiteral struct + LowerBound *IntLiteral + UpperBound *IntLiteral + type InvalidAliasRelatedNode struct + Value string + type InvalidCSSselectorNode struct + type InvalidComplexPatternElement struct + type InvalidMemberLike struct + Left Node + Right Node + type InvalidObjectElement struct + type InvalidPathPattern struct + Value string + type InvalidPathSlice struct + type InvalidURL struct + Value string + type InvalidURLPattern struct + Value string + type Iterable interface + Iterator func() Iterator + type IterationChange int + const BreakIteration + const ContinueIteration + const NoIterationChange + type Iterator interface + GetNext func(*Context) interface{} + HasNext func(*Context) bool + type JSONstring string + type KVStore interface + Get func(*Context, string) (interface{}, bool) + Has func(*Context, string) bool + Lock func() + Set func(*Context, string, interface{}) + Unlock func() + type KeyList []string + type KeyListExpression struct + Keys []*IdentifierLiteral + type LazyExpression struct + Expression Node + type Limitation struct + ByteRate ByteRate + DecrementFn func(time.Time) int64 + Name string + SimpleRate SimpleRate + Total int64 + type Limiter struct + type LineCount int + type List []interface + func (list List) ContainsSimple(v interface{}) bool + type ListLiteral struct + Elements []Node + type ListPattern struct + ElementMatchers []Matcher + func (patt ListPattern) Test(v interface{}) bool + type ListPatternLiteral struct + Elements []Node + type LoadType int + const ComputeLoad + const IOLoad + type MatchStatement struct + Cases []*Case + Discriminant Node + type Matcher interface + Test func(interface{}) bool + func CompilePatternNode(node Node, state *State) (Matcher, error) + type MemberExpression struct + Left Node + PropertyName *IdentifierLiteral + type MissingExpression struct + type Module struct + GlobalConstantDeclarations *GlobalConstantDeclarations + IsShellChunk bool + Requirements *Requirements + Statements []Node + func MustParseModule(str string) (result *Module) + func ParseAndCheckModule(s string, fpath string) (*Module, error) + func ParseModule(str string, fpath string) (result *Module, resultErr error) + type MultiAssignment struct + Right Node + Variables []Node + type NamedSegmentPathPattern struct + func (patt NamedSegmentPathPattern) MatchGroups(v interface{}) (bool, map[string]interface{}) + func (patt NamedSegmentPathPattern) Test(v interface{}) bool + type NamedSegmentPathPatternLiteral struct + Slices []Node + type NilLiteral struct + type Node interface + Base func() NodeBase + BasePtr func() *NodeBase + type NodeBase struct + Err *ParsingError + Span NodeSpan + ValuelessTokens []Token + func (base *NodeBase) BasePtr() *NodeBase + func (base NodeBase) Base() NodeBase + func (base NodeBase) IncludedIn(node Node) bool + type NodeSpan struct + End int + Start int + type NotAllowedError struct + Message string + Permission Permission + func (err NotAllowedError) Error() string + type Object map[string]interface + func (obj Object) GetOrDefault(key string, defaultVal interface{}) interface{} + func (obj Object) Indexed() Iterator + func (obj Object) IndexedItemCount() int + func NewTuiNamespace(state *State) Object + type ObjectLiteral struct + Properties []ObjectProperty + SpreadElements []*PropertySpreadElement + func (objLit ObjectLiteral) PermissionsLimitations(globalConsts *GlobalConstantDeclarations, runningState *State, ...) ([]Permission, []Limitation) + type ObjectPattern struct + EntryMatchers map[string]Matcher + func (patt ObjectPattern) Test(v interface{}) bool + type ObjectPatternLiteral struct + Properties []ObjectProperty + type ObjectProperty struct + IsValueShared bool + Key Node + Value Node + func (prop ObjectProperty) HasImplicitKey() bool + func (prop ObjectProperty) Name() string + type OcurrenceCountModifier int + const AtLeastOneOcurrence + const ExactOcurrence + const ExactlyOneOcurrence + const OptionalOcurrence + const ZeroOrMoreOcurrence + type Option struct + Name string + Value interface{} + type OptionExpression struct + Name string + SingleDash bool + Value Node + type ParsingError struct + Message string + func (err ParsingError) Error() string + type Path string + func (pth Path) IsDirPath() bool + func (pth Path) ToAbs() Path + type PathPattern string + func (patt PathPattern) IsPrefixPattern() bool + func (patt PathPattern) Prefix() string + func (patt PathPattern) Test(v interface{}) bool + func (patt PathPattern) ToAbs() PathPattern + type PathSlice struct + Value string + type PatternDefinition struct + Left *PatternIdentifierLiteral + Right Node + type PatternIdentifierLiteral struct + Name string + type PatternKind int + const FloatPattern + const IntegerPattern + const StringPattern + const UnspecifiedPatternKind + type PatternPiece struct + Elements []*PatternPieceElement + Kind PatternKind + type PatternPieceElement struct + ExactOcurrenceCount int + Expr Node + Ocurrence OcurrenceCountModifier + type PatternUnion struct + Cases []Node + type Permission interface + Includes func(Permission) bool + Kind func() PermissionKind + String func() string + type PermissionDroppingStatement struct + Object *ObjectLiteral + type PermissionKind int + const ConsumePerm + const CreatePerm + const DeletePerm + const ProvidePerm + const ReadPerm + const UpdatePerm + const UsePerm + func PermissionKindFromString(s string) (PermissionKind, bool) + func (kind PermissionKind) String() string + type PipelineExpression struct + Stages []*PipelineStage + type PipelineStage struct + Expr Node + Kind PipelineStageKind + type PipelineStageKind int + const NormalStage + const ParallelStage + type PipelineStatement struct + Stages []*PipelineStage + type PropertySpreadElement struct + Expr Node + type QuantityLiteral struct + Raw string + Unit string + Value float64 + type QuantityRange struct + End interface{} + Start interface{} + type REPLConfiguration struct + func MakeConfig(startupResult interface{}, state *State) (config REPLConfiguration) + type RateLiteral struct + Quantity *QuantityLiteral + Unit *IdentifierLiteral + type RegexMatcher struct + func (matcher RegexMatcher) Regex() string + func (matcher RegexMatcher) Test(v interface{}) bool + type RegularExpressionLiteral struct + Raw string + Value string + type RelativePathExpression struct + Slices []Node + type RelativePathLiteral struct + Value string + type RelativePathPatternLiteral struct + Value string + type RepeatedPatternElement struct + func (patt RepeatedPatternElement) Random() interface{} + func (patt RepeatedPatternElement) Regex() string + func (patt RepeatedPatternElement) Test(v interface{}) bool + type Requirements struct + Object *ObjectLiteral + ValuelessTokens []Token + type ReturnStatement struct + Expr Node + type Routine struct + func (routine *Routine) WaitResult(ctx *Context) (interface{}, error) + type RoutineGroup struct + func (group *RoutineGroup) WaitAllResults(ctx *Context) (interface{}, error) + type RoutinePermission struct + Kind_ PermissionKind + func (perm RoutinePermission) Includes(otherPerm Permission) bool + func (perm RoutinePermission) Kind() PermissionKind + func (perm RoutinePermission) String() string + type RuneLiteral struct + Value rune + type RuneRange struct + End rune + Start rune + func (r RuneRange) Random() interface{} + func (r RuneRange) RandomRune() rune + type RuneRangeExpression struct + Lower *RuneLiteral + Upper *RuneLiteral + type RuneRangeStringPattern struct + func (patt RuneRangeStringPattern) Random() interface{} + func (patt RuneRangeStringPattern) Regex() string + func (patt RuneRangeStringPattern) Test(v interface{}) bool + type SequenceStringPattern struct + func (patt SequenceStringPattern) Random() interface{} + func (patt SequenceStringPattern) Regex() string + func (patt SequenceStringPattern) Test(v interface{}) bool + type SimpleRate int + type SliceExpression struct + EndIndex Node + Indexed Node + StartIndex Node + type SmallKVStore struct + func OpenOrCreateStore(ctx *Context, filepath Path) (*SmallKVStore, error) + func (store *SmallKVStore) Get(ctx *Context, key string) (interface{}, bool) + func (store *SmallKVStore) Has(ctx *Context, key string) bool + func (store *SmallKVStore) Lock() + func (store *SmallKVStore) Set(ctx *Context, key string, value interface{}) + func (store *SmallKVStore) Unlock() + type SpawnExpression struct + ExprOrVar Node + Globals Node + GrantedPermissions *ObjectLiteral + GroupIdent *IdentifierLiteral + type SpreadArgument struct + Expr Node + type StackPermission struct + func (perm StackPermission) Includes(otherPerm Permission) bool + func (perm StackPermission) Kind() PermissionKind + func (perm StackPermission) String() string + type State struct + ReturnValue *interface{} + ScopeStack []map[string]interface{} + Script []rune + ScriptName string + func NewDefaultState(ctx *Context) *State + func NewState(ctx *Context, args ...map[string]interface{}) *State + func (state *State) PopScope() + func (state *State) PushScope() + func (state State) CurrentScope() map[string]interface{} + func (state State) GlobalScope() map[string]interface{} + type Statement interface + type StringLiteral struct + Raw string + Value string + type StringPatternElement interface + Regex func() string + func CompileStringPatternNode(node Node, state *State) (StringPatternElement, error) + type SwitchStatement struct + Cases []*Case + Discriminant Node + type TermAction int + const Back + const BackwardWord + const Delete + const DeleteWord + const Down + const End + const Enter + const Escape + const EscapeNext + const ForwardWord + const Home + const Left + const NoAction + const Right + const Stop + const SuggestComplete + const Up + func (code TermAction) String() string + type Token struct + Span NodeSpan + Type TokenType + func GetTokens(node Node) []Token + type TokenBucket struct + func (tb *TokenBucket) Availible() int64 + func (tb *TokenBucket) Capability() int64 + func (tb *TokenBucket) Destroy() + func (tb *TokenBucket) Take(count int64) + func (tb *TokenBucket) TakeMaxDuration(count int64, max time.Duration) bool + func (tb *TokenBucket) TryTake(count int64) bool + func (tb *TokenBucket) Wait(count int64) + func (tb *TokenBucket) WaitMaxDuration(count int64, max time.Duration) bool + type TokenType int + const ABSOLUTE_PATH_LITERAL + const ABSOLUTE_PATH_PATTERN_LITERAL + const ALLOW_KEYWORD + const ASSIGN_KEYWORD + const AT_HOST_LITERAL + const BINARY_OPERATOR + const BOOLEAN_LITERAL + const BREAK_KEYWORD + const CLOSING_BRACKET + const CLOSING_CURLY_BRACKET + const CLOSING_PARENTHESIS + const COLON + const COMMA + const CONST_KEYWORD + const CONTINUE_KEYWORD + const CSS_SELECTOR_PREFIX + const DROP_PERMS_KEYWORD + const ELSE_KEYWORD + const FLAG_LITERAL + const FLOAT_LITERAL + const FN_KEYWORD + const FOR_KEYWORD + const HTTP_HOST_LITERAL + const HTTP_HOST_PATTERN_LITERAL + const IDENTIFIER_LITERAL + const IF_KEYWORD + const IMPORT_KEYWORD + const INT_LITERAL + const IN_KEYWORD + const MATCH_KEYWORD + const NIL_LITERAL + const OPENING_BRACKET + const OPENING_CURLY_BRACKET + const OPENING_PARENTHESIS + const PATTERN_IDENTIFIER_LITERAL + const QUANTITY_LITERAL + const RATE_LITERAL + const RELATIVE_PATH_LITERAL + const RELATIVE_PATH_PATTERN_LITERAL + const REQUIRE_KEYWORD + const RETURN_KEYWORD + const RUNE_LITERAL + const SEMICOLON + const SPAWN_KEYWORD + const STRING_LITERAL + const SWITCH_KEYWORD + const THREE_DOTS + const URL_LITERAL + const URL_PATTERN_LITERAL + type TraversalAction int + const Continue + const Prune + const StopTraversal + type TraversalConfiguration struct + MaxDepth int + type TraversalOrder int + type URL string + type URLExpression struct + HostPart Node + Path *AbsolutePathExpression + QueryParams []Node + Raw string + type URLLiteral struct + Value string + type URLPattern string + func (patt URLPattern) Prefix() string + func (patt URLPattern) Test(v interface{}) bool + type URLPatternLiteral struct + Value string + type URLQueryExpression struct + Parameters map[string][]Node + type URLQueryParameter struct + Name string + Value []Node + type URLQueryParameterSlice struct + Value string + type UnionStringPattern struct + func (patt UnionStringPattern) Random() interface{} + func (patt UnionStringPattern) Regex() string + func (patt UnionStringPattern) Test(v interface{}) bool + type UnknownNode struct + type UpperBoundRangeExpression struct + UpperBound Node + type Variable struct + Name string