Documentation ¶
Index ¶
- Constants
- func CheckCommand(name string) bool
- func Compile(expressions []Expression) ([]utils.CommandInput, error)
- func Scan(content string) ([]utils.CommandInput, error)
- func StringTilChar(content []rune, i int, startCond func(c []rune, i int) bool, ...) ([]rune, int)
- type Expression
- type ExpressionType
- type Token
- func FindAlias(name string) ([]Token, error)
- func Lex(contentStr string) []Token
- func LexDoubleQuoteString(tokens []Token, content []rune, i int) ([]Token, int, bool)
- func LexGraveString(tokens []Token, content []rune, i int) ([]Token, int, bool)
- func LexIdentifier(tokens []Token, content []rune, i int) ([]Token, int, bool)
- func LexPipe(tokens []Token, content []rune, i int) ([]Token, int, bool)
- func LexSingleQuoteString(tokens []Token, content []rune, i int) ([]Token, int, bool)
- func LexTripleDoubleQuoteString(tokens []Token, content []rune, i int) ([]Token, int, bool)
- type TokenType
Constants ¶
View Source
const MAX_ALIAS_DEPTH = 8
Variables ¶
This section is empty.
Functions ¶
func CheckCommand ¶
func Compile ¶
func Compile(expressions []Expression) ([]utils.CommandInput, error)
Types ¶
type Expression ¶
type Expression struct { Type ExpressionType Content string }
func Parse ¶
func Parse(tokens []Token) ([]Expression, error)
Click to show internal directories.
Click to hide internal directories.