C# Class CFGLib.CFGParser

This class helps turn strings into grammars.
Show file Open project: ellisonch/CFGLib

Private Properties

Property Type Description
InitRegex void

Public Methods

Method Description
Production ( string s ) : Production

Turns a string like <X> -> <X> 'a' <X> into a production. Nonterminals must be surrounded by angled brackets, terminals must be surrounded by single quotes, and everything must be separated by spaces.

Private Methods

Method Description
InitRegex ( ) : void

Method Details

Production() public static method

Turns a string like <X> -> <X> 'a' <X> into a production. Nonterminals must be surrounded by angled brackets, terminals must be surrounded by single quotes, and everything must be separated by spaces.
public static Production ( string s ) : Production
s string
return Production