class Icr::CommandStack

Overview

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.

Defined in:

icr/command_stack.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def clear #

[View source]
def commands : Array(Icr::Command) #

[View source]
def pop #

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


[View source]
def push(command : String) #

Add new command.


[View source]
def to_code #

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


[View source]