# Functions
AssertCodeErrors asserts that code fails with a certain message when executed.
AssertCodeEvalsToGrammar asserts that code evaluates to a grammar equal to expected.
AssertCodeEvalsToType asserts that code evaluates to the same type as expected.
AssertCodePanics asserts that code panics when executed.
AssertCodeParseErrors asserts that code fails with a certain message when parsed.
AssertCodesEvalToSameValue asserts that code evaluate to the same value as expected.
AssertCodesEvalToSameValueCtx asserts that code evaluate to the same value as expected under the given context.
AssertEvalExprString asserts Expr string.
AssertScan asserts that a lexer's next produced token is as expected.
Compile compiles source string.
EvaluateBundle evaluates the buffer of a bundled scripts using the arrai bundle cmd.
EvaluateBundleCtx evaluates the buffer of a bundled scripts using the arrai bundle cmd.
EvaluateExpr evaluate the passed in arrai script `source` and returns the evaluated arrai value.
No description provided by the author
No description provided by the author
GetBuildInfo returns arr.ai build information.
GetMainBundleSource gets the path for the main arrai script in the bundled arrai scripts.
GetModuleFromBundle fetches the module path of the bundle from the bundle's buffer.
LexerInitState recognises the next input Token.
No description provided by the author
No description provided by the author
No description provided by the author
NewLexer returns a new Lexer for the given input.
NewLexerWithPrefix returns a new Lexer for the given input.
NewMacroValue returns a MacroValue with a given Expr and Scanner.
NewPackageExpr evaluates to !a.
NewStringLexer returns a new Lexer for the given input.
OutputArraiz writes the zip binary to the provided writer.
ParseArraiString parses an arr.ai string.
PrettifyString returns a string which represents `rel.Value` with more reabable format.
RequireCodesEvalToSameValue requires that code evaluates to the same value as expected.
No description provided by the author
No description provided by the author
SetupBundle adds necessary values to the context for bundling arrai scripts.
No description provided by the author
TokenRepr returns a string representation of a token value.
WithBundleRun adds necessary values to the context to allow running bundled arrai scripts.
# Constants
Non-character tokens.
->.
->*.
Non-character tokens.
@>.
BundleConfig contains configurations to run a bundled scripts.
Non-character tokens.
|}.
=>.
//.
Non-character tokens.
Non-character tokens.
Non-character tokens.
Non-character tokens.
Non-character tokens.
>=.
Non-character tokens.
Non-character tokens.
Non-character tokens.
<&>.
<=.
Non-character tokens.
Non-character tokens.
Non-character tokens.
Non-character tokens.
ModuleDir contains all the module files in a bundled scripts.
ModuleRootSentinel is a file which marks the module root of a project.
!=.
Non-character tokens.
NoModuleDir contains all the module files without root in a bundled scripts.
No description provided by the author
Non-character tokens.
Non-character tokens.
Non-character tokens.
Non-character tokens.
{|.
π.
√.
Non-character tokens.
-%.
Non-character tokens.
Non-character tokens.
Non-character tokens.
Non-character tokens.
Non-character tokens.
Non-character tokens.
# Structs
No description provided by the author
FilePos represents a position in a line-based file.
FileRange represents a range of characters in a line-based.
No description provided by the author
Lexer extracts a stream of tokens from an input file.
LexerSymbol is a convenience structure for defining token recognition regexes and handler functions.
Macro represents the metadata of a macro invocation: the grammar and rule to parse with, and the transform to apply to the parsed body.
MacroValue is an Extra node with an Expr value and a Scanner for the macro source.
PackageExpr represents a range of operators.
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author
# Type aliases
Token represents a lexical token.