X-Git-Url: https://ruin.nu/git/?p=proglang.git;a=blobdiff_plain;f=Docsyntax.tex;h=89c1a0f72a0fd971c506d65c77b011cc581914a4;hp=b22e5448befef0133379770c9d9808a2e2ed5178;hb=6103c0359b95557566aa9154efa5bcd4d9c996f6;hpb=ae57d654240e0ac85d1bb5c170c062830d4e0ba3 diff --git a/Docsyntax.tex b/Docsyntax.tex index b22e544..89c1a0f 100644 --- a/Docsyntax.tex +++ b/Docsyntax.tex @@ -80,11 +80,11 @@ All other symbols are terminals.\\ & {\delimit} &{\terminal{if}} {\terminal{(}} {\nonterminal{Exp}} {\terminal{)}} {\nonterminal{Stm}} {\terminal{else}} {\nonterminal{Stm}} \\ & {\delimit} &{\terminal{while}} {\terminal{(}} {\nonterminal{Exp}} {\terminal{)}} {\nonterminal{Stm}} \\ & {\delimit} &{\terminal{print}} {\nonterminal{Exp}} {\terminal{;}} \\ - & {\delimit} &{\nonterminal{Stm}} {\terminal{;}} \\ \end{tabular}\\ \begin{tabular}{lll} -{\nonterminal{Exp}} & {\arrow} &{\nonterminal{Exp1}} {\nonterminal{BOp}} {\nonterminal{Exp1}} \\ +{\nonterminal{Exp}} & {\arrow} &{\nonterminal{Ident}} {\terminal{{$=$}}} {\nonterminal{Exp}} \\ + & {\delimit} &{\nonterminal{Exp1}} {\nonterminal{Op0}} {\nonterminal{Exp1}} \\ & {\delimit} &{\nonterminal{Exp1}} \\ \end{tabular}\\ @@ -102,7 +102,6 @@ All other symbols are terminals.\\ {\nonterminal{Exp3}} & {\arrow} &{\nonterminal{Ident}} {\terminal{{$+$}{$+$}}} \\ & {\delimit} &{\nonterminal{Ident}} {\terminal{{$-$}{$-$}}} \\ & {\delimit} &{\nonterminal{Ident}} \\ - & {\delimit} &{\nonterminal{Ident}} {\terminal{{$=$}}} {\nonterminal{Exp}} \\ & {\delimit} &{\nonterminal{Integer}} \\ & {\delimit} &{\terminal{{$-$}}} {\nonterminal{Exp3}} \\ & {\delimit} &{\nonterminal{Bool}} \\ @@ -121,7 +120,7 @@ All other symbols are terminals.\\ \end{tabular}\\ \begin{tabular}{lll} -{\nonterminal{BOp}} & {\arrow} &{\terminal{{$<$}}} \\ +{\nonterminal{Op0}} & {\arrow} &{\terminal{{$<$}}} \\ & {\delimit} &{\terminal{{$<$}{$=$}}} \\ & {\delimit} &{\terminal{{$>$}}} \\ & {\delimit} &{\terminal{{$>$}{$=$}}} \\ @@ -142,6 +141,7 @@ All other symbols are terminals.\\ \begin{tabular}{lll} {\nonterminal{Op}} & {\arrow} &{\nonterminal{Op1}} \\ & {\delimit} &{\nonterminal{Op2}} \\ + & {\delimit} &{\nonterminal{Op0}} \\ \end{tabular}\\ \begin{tabular}{lll}