C# Class Ink.CommentEliminator

Pre-pass before main ink parser runs. It actually performs two main tasks: - comment elimination to simplify the parse rules in the main parser - Conversion of Windows line endings (\r\n) to the simpler Unix style (\n), so we don't have to worry about them later.
Inheritance: StringParser
ファイルを表示 Open project: inkle/ink Class Usage Examples

Public Methods

Method Description
CommentEliminator ( string input )
Process ( ) : string

Private Methods

Method Description
BlockComment ( ) : string
CommentsAndNewlines ( ) : string
EndOfLineComment ( ) : string
MainInk ( ) : string
ParseSingleComment ( ) : string

Method Details

CommentEliminator() public method

public CommentEliminator ( string input )
input string

Process() public method

public Process ( ) : string
return string