package
0.0.0-20240429040948-c72f79177088
Repository: https://github.com/ibax-io/needle.git
Documentation: pkg.go.dev

# Functions

CompileBlock compiles a block of input runes into a CodeBlock using the provided CompConfig.
ContractsList parses the given value string and returns a list of contract names found.
ConvertMap converts the input to a linked hash map.
FunctionsList parses the given value string and returns a list of function names found.
GetFieldDefaultValue returns default value for field type.
LoadMap instantiates a linked hash map and initializing it from map[string]any.
Lookup maps an identifier to its keyword token.
No description provided by the author
NewFile creates a new file with default values.
NewFileFromMap creates a new file from a map.
NewLexeme creates a new Lexeme with the given parameters.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewLexer creates a new Lexemes the given input.
NewMap instantiates a linked hash map.
No description provided by the author
NewObject creates a new Object with the given value and determines its ObjectType.
NewParser returns a new parser for the given lexemes and configuration.
StateName checks the name of the contract and modifies it to @[state]name if it is necessary.

# Constants

The list of keyword identifiers for IDENTIFIER.
The list of operators for OPERATOR.
The list of operators for OPERATOR.
The list of data types for parameters and variables for TYPENAME.
The list of operators for OPERATOR.
The list of operators for OPERATOR.
The list of data types for parameters and variables for TYPENAME.
The list of operators for OPERATOR.
The list of operators for OPERATOR.
The list of operators for OPERATOR.
The list of operators for OPERATOR.
The list of data types for parameters and variables for TYPENAME.
The list of keyword identifiers for IDENTIFIER.
The list of data types for parameters and variables for TYPENAME.
+.
&&.
array initialization.
assign.
+=.
&=.
/=.
<<=.
%=.
*=.
|=.
>>=.
-=.
list of assigned var.
^=.
&.
|.
^.
break.
call a function.
Call extend function.
call a variadic function.
continue from label.
--.
/.
run block if Value is false.
==.
error command.
Push extend variable to stack.
set func tail Func(...).tail(...).
get index [].
>.
>=.
run block if Value is true.
++.
label for continue.
<.
<=.
map initialization.
%.
*.
!.
!=.
||.
Push value to stack.
Push identifier as string.
return from function.
set index [].
<<.
>>.
unary sign.
slice [:].
-.
CmdSys is the command for delimiters.
No description provided by the author
unwrap array to stack.
Push variable to stack.
while.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
The list of delimiters for DELIMITER.
The list of delimiters for DELIMITER.
Comment.
The list of keyword identifiers for IDENTIFIER.
The list of keyword identifiers for IDENTIFIER.
The list of keyword identifiers for IDENTIFIER.
The list of operators for OPERATOR.
Delimiters.
The list of operators for OPERATOR.
The list of delimiters for DELIMITER.
The list of keyword identifiers for IDENTIFIER.
The list of keyword identifiers for IDENTIFIER.
The list of delimiters for DELIMITER.
The list of operators for OPERATOR.
The list of keyword identifiers for IDENTIFIER.
The list of keyword identifiers for IDENTIFIER.
The list of keyword identifiers for IDENTIFIER.
Referring to an external variable of IDENTIFIER.
The list of keyword identifiers for IDENTIFIER.
The list of keyword identifiers for IDENTIFIER.
The list of data types for parameters and variables for TYPENAME.
The list of data types for parameters and variables for TYPENAME.
The list of keyword identifiers for IDENTIFIER.
The list of operators for OPERATOR.
The list of operators for OPERATOR.
IDENTIFIER, including KEYWORD, TYPENAME, EXTEND.
The list of keyword identifiers for IDENTIFIER.
IgnoreIdent ignore not found identifiers object.
No description provided by the author
The list of operators for OPERATOR.
The list of data types for parameters and variables for TYPENAME.
keyword of IDENTIFIER.
The list of delimiters for DELIMITER.
The list of delimiters for DELIMITER.
The list of operators for OPERATOR.
The list of operators for OPERATOR.
string or char.
The list of delimiters for DELIMITER.
The list of operators for OPERATOR.
The list of operators for OPERATOR.
The list of data types for parameters and variables for TYPENAME.
MapArray represents an array.
MapConst represents a constant value.
MapExtend represents an extended variable.
MapMap represents a map.
MapVar represents a variable.
The list of operators for OPERATOR.
The list of operators for OPERATOR.
The list of data types for parameters and variables for TYPENAME.
The list of operators for OPERATOR.
The list of operators for OPERATOR.
MustColon represents a colon.
MustComma represents a comma.
MustKey represents a key.
MustValue represents a value.
Line translation.
The list of keyword identifiers for IDENTIFIER.
The list of operators for OPERATOR.
The list of operators for OPERATOR.
integer or float.
ObjCodeBlock is a code block object.
ObjDefault is an default object.
ObjExtFunc is an extended build in function object.
ObjExtVar is an extended build in variable.
ObjVariable is a variable object.
Operators.
The list of operators for OPERATOR.
The list of operators for OPERATOR.
The list of operators for OPERATOR.
The list of delimiters for DELIMITER.
The list of delimiters for DELIMITER.
The list of keyword identifiers for IDENTIFIER.
The list of delimiters for DELIMITER.
The list of operators for OPERATOR.
The list of operators for OPERATOR.
The list of keyword identifiers for IDENTIFIER.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
The list of data types for parameters and variables for TYPENAME.
The list of operators for OPERATOR.
The list of operators for OPERATOR.
The list of keyword identifiers for IDENTIFIER.
The list of keyword identifiers for IDENTIFIER.
name of the type of IDENTIFIER.
represents the lexical token type of the program.
The list of keyword identifiers for IDENTIFIER.
The list of keyword identifiers for IDENTIFIER.
The list of operators for OPERATOR.

# Variables

No description provided by the author
KeywordValue is a map of keywords to tokens.
ObjectTypeName maps the integer values of ObjectType to their string representations.
TypeNameReflect is a map of types to reflect.Type.
TypeNameValue is a map of types to tokens.

# Structs

ByteCode stores a command and an additional parameter.
CodeBlock contains all information about compiled block {...} and its children.
No description provided by the author
No description provided by the author
No description provided by the author
CompConfig is used for the definition of the extended functions and variables.
ContractInfo contains the contract information.
ExtendFunc is used for the definition of the extended functions.
ExtFuncInfo is the structure for the extended golang function.
FieldInfo describes the field of the data structure.
FuncTail contains the tail function information.
No description provided by the author
FunctionInfo contains the function information.
No description provided by the author
Lexeme is a lexical token of the program.
LexemeBoolean is a boolean lexeme.
No description provided by the author
LexemeNumber is a number lexeme.
LexemeString is a string lexeme.
LexemeToken is a token lexeme.
Link represents a node of doubly linked list.
Map holds the elements in go's native map, also maintains the head and tail link to keep the elements in insertion order.
MapItem represents a map item with a type and value.
Object is the common object type that can be compiled.
ObjInfoExtendVariable is the structure for the extended variable.
ObjInfoVariable is the structure for the local variable.
OwnerInfo contains the owner information of the contract.
Parser is a parser for the compiler.
SliceItem is a slice item, Index[0] is low, Index[1] is high.
No description provided by the author

# Type aliases

ByteCodes is the slice of ByteCode items.
No description provided by the author
CodeBlocks is a slice of blocks.
No description provided by the author
No description provided by the author
Lexemes is a slice of pointers to Lexeme.
No description provided by the author
ObjectType Types of the compiled objects.
Token is the incoming program is implemented in this file.