X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=Docsyntax.tex;h=d978641a5ecfd0855d40eb5228723db4ecda8e1a;hb=97719af3b544b9fae80e886bf6a49c51b4a320a9;hp=e0d2758fa311ea43031e94b4f8e449d033227bba;hpb=565fbd61dca527c23888e08783d0d91cee458524;p=proglang.git diff --git a/Docsyntax.tex b/Docsyntax.tex index e0d2758..d978641 100644 --- a/Docsyntax.tex +++ b/Docsyntax.tex @@ -84,10 +84,8 @@ All other symbols are terminals.\\ \begin{tabular}{lll} {\nonterminal{Stm}} & {\arrow} &{\nonterminal{Exp}} {\terminal{;}} \\ & {\delimit} &{\terminal{\{}} {\nonterminal{ListStm}} {\terminal{\}}} \\ - & {\delimit} &{\terminal{int}} {\nonterminal{Ident}} {\terminal{{$=$}}} {\nonterminal{Exp}} {\terminal{;}} \\ - & {\delimit} &{\terminal{bool}} {\nonterminal{Ident}} {\terminal{{$=$}}} {\nonterminal{Exp}} {\terminal{;}} \\ - & {\delimit} &{\terminal{int}} {\nonterminal{Ident}} {\terminal{;}} \\ - & {\delimit} &{\terminal{bool}} {\nonterminal{Ident}} {\terminal{;}} \\ + & {\delimit} &{\nonterminal{Type}} {\nonterminal{Ident}} {\terminal{{$=$}}} {\nonterminal{Exp}} {\terminal{;}} \\ + & {\delimit} &{\nonterminal{Type}} {\nonterminal{Ident}} {\terminal{;}} \\ & {\delimit} &{\terminal{while}} {\terminal{(}} {\nonterminal{Exp}} {\terminal{)}} {\nonterminal{Stm}} \\ & {\delimit} &{\terminal{if}} {\terminal{(}} {\nonterminal{Exp}} {\terminal{)}} {\nonterminal{Stm}} {\terminal{else}} {\nonterminal{Stm}} \\ & {\delimit} &{\terminal{if}} {\terminal{(}} {\nonterminal{Exp}} {\terminal{)}} {\nonterminal{Stm}} \\