abstract struct CLTK::Parser::Action
- CLTK::Parser::Action
- Struct
- Value
- Object
Overview
The Action class is used to indicate what action the parser should take given a current state and input token.
Direct Known Subclasses
- CLTK::Parser::Actions::Accept
- CLTK::Parser::Actions::GoTo
- CLTK::Parser::Actions::Reduce
- CLTK::Parser::Actions::Shift
Defined in:
cltk/parser/actions.crcltk/parser/msgpack.cr
Class Method Summary
- .from_msgpack(pull : MessagePack::Unpacker)
-
.new(id : Int32)
@param [Integer] id ID of this action.
- .new(packer : MessagePack::Unpacker)
Instance Method Summary
-
#id : Int32
@return [Integer] ID of this action.
- #to_msgpack(packer : MessagePack::Packer)