Generalized LL parsing algorithm and it's modification for migration from full code generation to GLL table generation are described. Also we explain correspondence between GLL, GLR and static analysis of string embedded languages.
5. 亳仄亠
IF @X = @Y
SET @TABLE = #table1
ELSE
SET @TABLE = table2
EXECUTE
(SELECT x FROM + @TABLE + WHERE ISNULL(n,0) > 1)
仆仂亢亠于仂 亰仆舒亠仆亳亶:
{SELECT x FROM #table1 WHERE ISNULL(n,0) > 1 ;
SELECT x FROM table2 WHERE ISNULL(n,0) > 1}
仗仗仂从亳仄舒亳:
1 2
"SELECT x FROM "
3
"#table1"
"table2"
4
" WHERE ISNULL(n,0) > 1"
舒亞仂亰亳仆舒 仆舒舒亳 (JetBrains) GLL 15 仆仂磡 2014亞. 5 / 20
14. SPPF: 仗亳仄亠
舒仄仄舒亳从舒:
strat s;
s ss|B
仂亟:
B B B
prod 2
n s
prod 0
n s n s
prod 0 prod 1
n s n s
prod 1 prod 1
t B t B
t B
prod 2
n s
prod 0
n s n s
prod 1
t B
prod 0
n s n s
prod 1 prod 1
t B t B
prod 2
n s
prod 0prod 0
n s
n sn s
n s
prod 0
prod 1 prod 1
t B
n s
prod 1
prod 0
t B t B
舒亞仂亰亳仆舒 仆舒舒亳 (JetBrains) GLL 15 仆仂磡 2014亞. 14 / 20