Class Symbol
Symbol in the Alang
language used for defining finite-state automata.
Inherited Members
Namespace: Automata.Core.Alang
Assembly: Automata.Core.dll
Syntax
public class Symbol : AlangRegex
Remarks
A Symbol is a atomic unit in the Alang
language, consisting of one or more characters that are not
operators or whitespace. They are present as leaf nodes in the resulting AST (abstract syntax tree).
Constructors
| Edit this page View SourceSymbol(string)
Initializes a new instance of the Symbol class with the specified symbol.
Declaration
public Symbol(string symbol)
Parameters
Type | Name | Description |
---|---|---|
string | symbol | String representing this Symbol. |
Properties
| Edit this page View SourceAlangExpressionString
String representation of this expression in valid Alang language syntax.
Declaration
public override string AlangExpressionString { get; }
Property Value
Type | Description |
---|---|
string | A string representing the expression in Alang syntax. |
Overrides
| Edit this page View SourcePrecedence
Precedence level of this expression according to the Alang grammar specification.
Declaration
public override int Precedence { get; }
Property Value
Type | Description |
---|---|
int | An integer representing the precedence level of the expression. |
Overrides
| Edit this page View SourceValue
String value for this Symbol.
Declaration
public string Value { get; }
Property Value
Type | Description |
---|---|
string |