C# Class Irony.Interpreter.CommandLine

Show file Open project: o2platform/O2.Platform.Projects

Public Properties

Property Type Description
Grammar Irony.Parsing.Grammar
Greeting string
Interpreter ScriptInterpreter
Prompt string
PromptMoreInput string
Title string

Public Methods

Method Description
CommandLine ( Grammar grammar ) : System
OnCancelKeyPress ( object sender, ConsoleCancelEventArgs e ) : void
Run ( ) : void

Private Methods

Method Description
ReadInput ( string &input ) : ReadResult
ReportException ( ) : void
RunImpl ( ) : void

Method Details

CommandLine() public method

public CommandLine ( Grammar grammar ) : System
grammar Irony.Parsing.Grammar
return System

OnCancelKeyPress() public method

public OnCancelKeyPress ( object sender, ConsoleCancelEventArgs e ) : void
sender object
e System.ConsoleCancelEventArgs
return void

Run() public method

public Run ( ) : void
return void

Property Details

Grammar public property

public Grammar,Irony.Parsing Grammar
return Irony.Parsing.Grammar

Greeting public property

public string Greeting
return string

Interpreter public property

public ScriptInterpreter,Irony.Interpreter Interpreter
return ScriptInterpreter

Prompt public property

public string Prompt
return string

PromptMoreInput public property

public string PromptMoreInput
return string

Title public property

public string Title
return string