class Axal::AST::Identifier

Defined in:

lang/ast/identifier.cr

Constant Summary

EXPECTED_NEXT_TOKENS = [TokenKind::NEW_LINE, TokenKind::PLUS, TokenKind::HYPHEN, TokenKind::ASTERISK, TokenKind::FORWARD_SLASH, TokenKind::DOUBLE_EQUALS, TokenKind::NOT_EQUAL, TokenKind::GREATER_THAN, TokenKind::LESS_THAN, TokenKind::GREATER_THAN_OR_EQUAL, TokenKind::LESS_THAN_OR_EQUAL, TokenKind::AND, TokenKind::OR]

Constructors

Instance Method Summary

Instance methods inherited from class Axal::AST::Expression

==(other) ==, children children, type type, value : Expression | ::Nil | String | ::Nil | Float64 | ::Nil | Bool | ::Nil value

Constructor methods inherited from class Axal::AST::Expression

new(value : Axal::AST::Expression | Bool | Float64 | String | ::Nil = nil) new

Constructor Detail

def self.new(name : String) #

[View source]

Instance Method Detail

def ==(other : Identifier) #

[View source]
def children #

[View source]
def expects?(next_token) #

[View source]
def name : String #

[View source]