class

Icr::CommandStack

Inherits Reference / Object

CommandStack - is a collection is a user's input. It distinguishes input of different types and at the end generates crystal source code, that can be executed.

Constructors

Instance methods

clear
Source
commands
Source
pop

Pop the last command. It's used in cases if the last command results into error.

Source
push(command : String)

Add new command.

Source
to_code

Generate crystal source code, based on the command in the stack.

Source