class Stacklang::AST::Unary
- Stacklang::AST::Unary
- Stacklang::AST::Operator
- Stacklang::AST::Expression
- Stacklang::AST::Statement
- Stacklang::AST
- Reference
- Object
Defined in:
stacklang/ast.crConstructors
- .new(token, operand : Expression, name : String)
-
.new(operand : Expression, name : String)
For codegen / syntaxic sugar.
Instance Method Summary
Instance methods inherited from class Stacklang::AST
character
character,
dump(io, indent = 0)
dump,
line
line,
to_s(io : IO)
to_s,
token : Tokenizer::Token | Nil
token,
token=(token : Tokenizer::Token | Nil)
token=
Constructor Detail
def self.new(operand : Expression, name : String)
#
For codegen / syntaxic sugar. TODO: track origin