X-Git-Url: https://ruin.nu/git/?p=proglang.git;a=blobdiff_plain;f=Docsyntax.tex;h=09e48987172d66864ffffae73e3e784dc9506f2b;hp=76d4a279cb7e9486db34d88dbffe3dddd165d14f;hb=2316d61f350f8b39c9a3f76b91d1d14796d5183b;hpb=93b042040034d199c925248a2dd1c321773ab6d0 diff --git a/Docsyntax.tex b/Docsyntax.tex index 76d4a27..09e4898 100644 --- a/Docsyntax.tex +++ b/Docsyntax.tex @@ -52,9 +52,10 @@ The symbols used in syntax are the following: \\ {\symb{{$=$}}} &{\symb{;}} &{\symb{\{}} \\ {\symb{\}}} &{\symb{(}} &{\symb{)}} \\ {\symb{{$+$}{$+$}}} &{\symb{{$-$}{$-$}}} &{\symb{{$-$}}} \\ -{\symb{{$<$}}} &{\symb{{$<$}{$=$}}} &{\symb{{$>$}}} \\ -{\symb{{$>$}{$=$}}} &{\symb{{$=$}{$=$}}} &{\symb{!{$=$}}} \\ -{\symb{{$+$}}} &{\symb{*}} &{\symb{/}} \\ +{\symb{!}} &{\symb{{$<$}}} &{\symb{{$<$}{$=$}}} \\ +{\symb{{$>$}}} &{\symb{{$>$}{$=$}}} &{\symb{{$=$}{$=$}}} \\ +{\symb{!{$=$}}} &{\symb{{$+$}}} &{\symb{*}} \\ +{\symb{/}} & & \\ \end{tabular}\\ \subsection*{Comments} @@ -84,7 +85,7 @@ All other symbols are terminals.\\ \begin{tabular}{lll} {\nonterminal{Exp}} & {\arrow} &{\nonterminal{Ident}} {\terminal{{$=$}}} {\nonterminal{Exp}} \\ - & {\delimit} &{\nonterminal{Exp1}} {\nonterminal{BOp}} {\nonterminal{Exp1}} \\ + & {\delimit} &{\nonterminal{Exp1}} {\nonterminal{Op0}} {\nonterminal{Exp1}} \\ & {\delimit} &{\nonterminal{Exp1}} \\ \end{tabular}\\ @@ -104,6 +105,7 @@ All other symbols are terminals.\\ & {\delimit} &{\nonterminal{Ident}} \\ & {\delimit} &{\nonterminal{Integer}} \\ & {\delimit} &{\terminal{{$-$}}} {\nonterminal{Exp3}} \\ + & {\delimit} &{\terminal{!}} {\nonterminal{Exp3}} \\ & {\delimit} &{\nonterminal{Bool}} \\ & {\delimit} &{\terminal{readInt}} \\ & {\delimit} &{\terminal{readBool}} \\ @@ -120,7 +122,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{{$>$}{$=$}}} \\ @@ -141,6 +143,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}