C# Class Manos.Templates.TemplateParser

Datei anzeigen Open project: toptensoftware/manos

Public Methods

Method Description
FlushData ( StringBuilder data ) : void
NextNonWhiteSpaceToken ( TemplateTokenizer tk ) : Token
ParseBlock ( TemplateTokenizer tk ) : void
ParseComment ( TemplateTokenizer tk ) : void
ParseControlBlock ( TemplateTokenizer tk ) : void
ParseElse ( TemplateTokenizer tk ) : void
ParseEndBlock ( TemplateTokenizer tk ) : void
ParseEndForeachLoop ( TemplateTokenizer tk ) : void
ParseEndIf ( TemplateTokenizer tk ) : void
ParseExpression ( TemplateTokenizer tk, TokenType end_token_type, bool allow_conditionals = true ) : Manos.Templates.Expression
ParseExtends ( TemplateTokenizer tk ) : void
ParseForeachLoop ( TemplateTokenizer tk ) : void
ParseIf ( TemplateTokenizer tk ) : void
ParsePage ( string name, TextReader reader ) : void
ParseStatement ( TemplateTokenizer tk ) : void
ParseSubscript ( TemplateTokenizer tk ) : string
ParseVariable ( TemplateTokenizer tk ) : void
TemplateParser ( Manos.Templates.TemplateEnvironment environment, Manos.Templates.ITemplateCodegen codegen ) : System

Private Methods

Method Description
Expect ( TemplateTokenizer tk, TokenType type, string value, string error = "Expected symbol {0} not found." ) : void
RaiseFailure ( TemplateTokenizer tk, string error ) : void
ValueOfQuotedString ( string str ) : string

Method Details

FlushData() public method

public FlushData ( StringBuilder data ) : void
data StringBuilder
return void

NextNonWhiteSpaceToken() public method

public NextNonWhiteSpaceToken ( TemplateTokenizer tk ) : Token
tk TemplateTokenizer
return Token

ParseBlock() public method

public ParseBlock ( TemplateTokenizer tk ) : void
tk TemplateTokenizer
return void

ParseComment() public method

public ParseComment ( TemplateTokenizer tk ) : void
tk TemplateTokenizer
return void

ParseControlBlock() public method

public ParseControlBlock ( TemplateTokenizer tk ) : void
tk TemplateTokenizer
return void

ParseElse() public method

public ParseElse ( TemplateTokenizer tk ) : void
tk TemplateTokenizer
return void

ParseEndBlock() public method

public ParseEndBlock ( TemplateTokenizer tk ) : void
tk TemplateTokenizer
return void

ParseEndForeachLoop() public method

public ParseEndForeachLoop ( TemplateTokenizer tk ) : void
tk TemplateTokenizer
return void

ParseEndIf() public method

public ParseEndIf ( TemplateTokenizer tk ) : void
tk TemplateTokenizer
return void

ParseExpression() public method

public ParseExpression ( TemplateTokenizer tk, TokenType end_token_type, bool allow_conditionals = true ) : Manos.Templates.Expression
tk TemplateTokenizer
end_token_type TokenType
allow_conditionals bool
return Manos.Templates.Expression

ParseExtends() public method

public ParseExtends ( TemplateTokenizer tk ) : void
tk TemplateTokenizer
return void

ParseForeachLoop() public method

public ParseForeachLoop ( TemplateTokenizer tk ) : void
tk TemplateTokenizer
return void

ParseIf() public method

public ParseIf ( TemplateTokenizer tk ) : void
tk TemplateTokenizer
return void

ParsePage() public method

public ParsePage ( string name, TextReader reader ) : void
name string
reader TextReader
return void

ParseStatement() public method

public ParseStatement ( TemplateTokenizer tk ) : void
tk TemplateTokenizer
return void

ParseSubscript() public method

public ParseSubscript ( TemplateTokenizer tk ) : string
tk TemplateTokenizer
return string

ParseVariable() public method

public ParseVariable ( TemplateTokenizer tk ) : void
tk TemplateTokenizer
return void

TemplateParser() public method

public TemplateParser ( Manos.Templates.TemplateEnvironment environment, Manos.Templates.ITemplateCodegen codegen ) : System
environment Manos.Templates.TemplateEnvironment
codegen Manos.Templates.ITemplateCodegen
return System