Persistate API documentation
SyntaxParser Constructor
NamespacesPersistate.LanguageSyntaxParserSyntaxParser()()()()

[This is preliminary documentation and is subject to change.]

Creates a new SyntaxParser with no productions.
Declaration Syntax
C#
public SyntaxParser()
Remarks

Use this constructor if you do not have a grammar for the language you want to parse, but want to create the productions manually. In most cases, you should create a grammar and use the GenerateParser or GenerateParserFromFile methods to create the parser.

If you do use this constructor, then you must populate it with Productions manually. You can do this using the CreateProduction method to create a Production with an LHS but no RHS, and then the Add, Choice, Repeat and Option methods to populate the RHS for that Production.

Once you have created all your Productions, you must then call the CreateParser method in order to analyse the set of Productions and create the necessary parse states and transition table. The SyntaxParser is then ready to Parse source code.

Assembly: Persistate.Language (Module: Persistate.Language) Version: 0.6.1.20 (0.6.1.20)