C# Class Paralect.Schematra.Definitions.Lexer

显示文件 Open project: paralect/Schematra Class Usage Examples

Public Methods

Method Description
BuildCompilationDefinition ( String filePaths ) : CompilationDefinition

Compile specified files

BuildParseTree ( String filePath ) : ParseTree

Build ParseTree from the file

Private Methods

Method Description
BuildErrorMessage ( String message, String filePath, Int32 line, Int32 column ) : String

Builds error message that explains error and shows position in file with this error

BuildParseTree ( String source, String filePath ) : ParseTree

Build Parse tree from the String

ParseDef ( ParseTreeNode node, UnitDefinition unitDefinition, String space ) : void

Parsing of def nonterm

ParseDefs ( ParseTreeNode node, UnitDefinition unitDefinition, String space ) : void

Parsing of defs nonterm

ParseField ( ParseTreeNode node, FieldDefinition fieldDefinition ) : void

Parsing of field nonterm

ParseNamespaceDef ( ParseTreeNode node, UnitDefinition unitDefinition, String space ) : void

Parsing of namespace-def nonterm

ParseSchemaDef ( ParseTreeNode node, UnitDefinition unitDefinition, String space ) : void

Parsing of schema-def nonterm

ParseSchemaDefBody ( ParseTreeNode node, RecordDefinition schemadef ) : void

Parsing of schema-def-body nonterm

ParseSchemaDefExtendsOption ( ParseTreeNode node, RecordDefinition schemadef ) : void

Parsing of schema-def-extends-option nonterm

ParseSchemaDefOption ( ParseTreeNode node, RecordDefinition schemadef ) : void

Parsing of schema-def-option nonterm

ParseSchemaDefOptions ( ParseTreeNode node, RecordDefinition schemadef ) : void

Parsing of schema-def-options nonterm

ParseSchemaDefTaggedOption ( ParseTreeNode node, RecordDefinition schemadef ) : void

Parsing of schema-def-tagged-option nonterm

ParseUnit ( ParseTree tree, CompilationDefinition compilation ) : void

Parsing of unit nonterm

ParseUsingDef ( ParseTreeNode node, UnitDefinition unitDefinition ) : void

Parsing of using-def nonterm

ParseUsingDefs ( ParseTreeNode node, UnitDefinition unitDefinition ) : void

Parsing of unit-defs nonterm

Method Details

BuildCompilationDefinition() public method

Compile specified files
public BuildCompilationDefinition ( String filePaths ) : CompilationDefinition
filePaths String
return CompilationDefinition

BuildParseTree() public method

Build ParseTree from the file
public BuildParseTree ( String filePath ) : ParseTree
filePath String
return Irony.Parsing.ParseTree