Posted
over 8 years
ago
by
oturkan
Thank you for replay. A.B is Not a table.columnname. a.b is custom Text. İ think textliteral works for me
|
Posted
over 8 years
ago
by
rivantsov
first question is why? you can parse, then convert the parse tree (using a visitor/converter)
If you absolutely need it, you can use RegexTerminal. Or FreeTextLiteral
|
Posted
over 8 years
ago
by
rivantsov
first question is why? you can parse, then convert the parse tree (using a visitor/converter)
If you absolutely need it, you can use RegexTerminal. Or FreeTextLiteral
|
Posted
over 8 years
ago
by
oturkan
Hi,
I try to parse sql script.there is a custom keyword like "A.B". How i can get it with single token.
I'm mean Token.Text = A.B
|
Posted
over 8 years
ago
by
oturkan
Hi,
I try to parse sql script.there is a custom keyword like "A.B". How i can get it with single token.
I'm mean Token.Text = A.B
|
Posted
over 8 years
ago
by
rivantsov
you could try using transient non-terminal(s), to end up with a single AST node that is either identifier or function. Something like:
idOrFunc.Rule = identifier | functionExpression;
bracedExpr = Lbrace + idOrFunc + RBrace;
|
Posted
over 8 years
ago
by
rivantsov
you could try using transient non-terminal(s), to end up with a single AST node that is either identifier or function. Something like:
idOrFunc.Rule = identifier | functionExpression;
bracedExpr = Lbrace + idOrFunc + RBrace;
|
Posted
over 8 years
ago
by
Midwestlimey
Rated 5 Stars (out of 5) - Simply and easily developed two DSLs for complex configuration scenarios. Excellent.
|
Posted
over 8 years
ago
by
Midwestlimey
Rated 5 Stars (out of 5) - Simply and easily developed two DSLs for complex configuration scenarios. Excellent.
|
Posted
over 8 years
ago
by
woopsie
Hi
I have this in my grammar to enable me to set the AST builder for a terminal.
Dim bracedText = NewTerminal(Function() New QuotedValueLiteral("bracedString", "{", "}", TypeCode.String), GetType(StringExpr))
Private Function NewTerminal(Of TTerm
|