abstract struct CLTK::Parser::Action

Overview

The Action class is used to indicate what action the parser should take given a current state and input token.

Direct Known Subclasses

Defined in:

cltk/parser/actions.cr
cltk/parser/msgpack.cr

Class Method Summary

Instance Method Summary

Instance methods inherited from class Object

in?(collection : Array | Set) in?

Class Method Detail

def self.from_msgpack(pull : MessagePack::Unpacker) #

[View source]
def self.new(id : Int32) #

@param [Integer] id ID of this action.


[View source]
def self.new(packer : MessagePack::Unpacker) #

[View source]

Instance Method Detail

def id : Int32 #

@return [Integer] ID of this action.


[View source]
def to_msgpack(packer : MessagePack::Packer) #

[View source]