Avro C#
Classes | Public Member Functions | Protected Member Functions | List of all members
Avro.IO.Parsing.ValidatingGrammarGenerator Class Reference

The class that generates validating grammar. More...

Inheritance diagram for Avro.IO.Parsing.ValidatingGrammarGenerator:
Avro.IO.Parsing.JsonGrammarGenerator

Classes

class  LitS
 A wrapper around Schema that does "==" equality. More...
 

Public Member Functions

virtual Symbol Generate (Schema schema)
 Returns the non-terminal that is the start symbol for the grammar for the given schema sc. More...
 

Protected Member Functions

virtual Symbol Generate (Schema sc, IDictionary< LitS, Symbol > seen)
 Returns the non-terminal that is the start symbol for the grammar for the given schema sc. If there is already an entry for the given schema in the given map seen then that entry is returned. Otherwise a new symbol is generated and an entry is inserted into the map. More...
 

Detailed Description

The class that generates validating grammar.

Member Function Documentation

◆ Generate() [1/2]

virtual Symbol Avro.IO.Parsing.ValidatingGrammarGenerator.Generate ( Schema  sc,
IDictionary< LitS, Symbol seen 
)
inlineprotectedvirtual

Returns the non-terminal that is the start symbol for the grammar for the given schema sc. If there is already an entry for the given schema in the given map seen then that entry is returned. Otherwise a new symbol is generated and an entry is inserted into the map.

Parameters
scThe schema for which the start symbol is required
seenA map of schema to symbol mapping done so far.
Returns
The start symbol for the schema

Reimplemented in Avro.IO.Parsing.JsonGrammarGenerator.

◆ Generate() [2/2]

virtual Symbol Avro.IO.Parsing.ValidatingGrammarGenerator.Generate ( Schema  schema)
inlinevirtual

Returns the non-terminal that is the start symbol for the grammar for the given schema sc.

Reimplemented in Avro.IO.Parsing.JsonGrammarGenerator.


The documentation for this class was generated from the following file: