Class Parser
Represents a Fluency parser.
Inheritance
System.Object
Parser
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Fluency.Execution.Parsing
Assembly: Execution.dll
Syntax
public class Parser
Constructors
| Improve this Doc View SourceParser(Boolean, Boolean, Int32)
Construct a new parser.
Declaration
public Parser(bool verbose = false, bool tabWarn = true, int tabWidth = 4)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | verbose | Be verbose. |
| System.Boolean | tabWarn | Whether to warn about tabs after text. |
| System.Int32 | tabWidth | How wide to try to expand tabs to. |
Methods
| Improve this Doc View SourceParse(IEnumerable<String>)
Parse an IEnumerable of lines, such as those from File.ReadAllLines.
Declaration
public IEnumerable<FunctionGraph> Parse(IEnumerable<string> lines)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IEnumerable<System.String> | lines |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<FunctionGraph> |
Register(ParsedCallback)
Declaration
public void Register(ParsedCallback func)
Parameters
| Type | Name | Description |
|---|---|---|
| ParsedCallback | func |