Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /branches/vis12/doc/report/grammar-defs.tex
ViewVC logotype

Diff of /branches/vis12/doc/report/grammar-defs.tex

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2275, Fri Mar 8 12:00:16 2013 UTC revision 2276, Fri Mar 8 12:15:27 2013 UTC
# Line 6  Line 6 
6  %  %
7  \newcommand{\ProgramRULES}{  \newcommand{\ProgramRULES}{
8    \begin{Rules}{Program}    \begin{Rules}{Program}
9      \RHS{\LISTONE{\nt{Declaration}}}      \RHS{\LIST{\nt{GlobalDecl}} \nt{StrandDecl} \nt{InitialDecl}}
10    \end{Rules}}    \end{Rules}}
11  \newcommand{\DeclarationRULES}{  \newcommand{\GlobalDeclRULES}{
12    \begin{Rules}{Declaration}    \begin{Rules}{Declaration}
     \RHS{\nt{InputDecl}}  
13      \RHS{\nt{VarDecl}}      \RHS{\nt{VarDecl}}
14        \RHS{\nt{InputDecl}}
15      \RHS{\nt{FuncDecl}}      \RHS{\nt{FuncDecl}}
     \RHS{\nt{StrandDecl}}  
     \RHS{\nt{CoordinationDecl}}  
16    \end{Rules}}    \end{Rules}}
17  \newcommand{\InputDeclRULES}{  \newcommand{\InputDeclRULES}{
18    \begin{Rules}{InputDecl}    \begin{Rules}{InputDecl}
19      \RHS{\kw{input} \nt{Type} \term{Id} \OPTGRP{\kw{=} \nt{Expr}} \kw{;}}      \RHS{\kw{input} \nt{Type} \term{Id} \OPTGRP{\kw{(} \term{String} \kw{)}} \OPTGRP{\kw{=} \nt{Initializer}} \kw{;}}
20    \end{Rules}}    \end{Rules}}
21  \newcommand{\FuncDeclRULES}{  \newcommand{\FuncDeclRULES}{
22    \begin{Rules}{FuncDecl}    \begin{Rules}{FuncDecl}
23      \RHS{\kw{function} \nt{Type} \term{Id} \kw{(} \nt{Params} \kw{)} \kw{=} \nt{Expr} \kw{;}}      \RHS{\kw{function} \nt{Type} \term{Id} \kw{(} \nt{Params} \kw{)} \kw{=} \nt{Expr} \kw{;}}
24      \RHS{\kw{function} \nt{Type} \term{Id} \kw{(} \nt{Params} \kw{)} \nt{Block}}      \RHS{\kw{function} \nt{Type} \term{Id} \kw{(} \nt{Params} \kw{)} \nt{Block}}
25    \end{Rules}}    \end{Rules}}
 \newcommand{\StrandDeclRULES}{  
   \begin{Rules}{StrandDecl}  
     \RHS{\kw{strand} \term{Id} \kw{(} \nt{Params} \kw{)} \kw{\{} \LISTGRP{\nt{StrandStateDecl}} \LISTONEGRP{\nt{StrandMethod}} \kw{\}}}  
   \end{Rules}}  
26  \newcommand{\ParamsRULES}{  \newcommand{\ParamsRULES}{
27    \begin{Rules}{Params}    \begin{Rules}{Params}
28      \RHS{\OPTGRP{\nt{Param} \LISTGRP{\kw{,} \nt{Param}}}}      \RHS{\OPTGRP{\nt{Param} \LISTGRP{\kw{,} \nt{Param}}}}
# Line 37  Line 31 
31    \begin{Rules}{Param}    \begin{Rules}{Param}
32      \RHS{\nt{ValueType} \term{Id}}      \RHS{\nt{ValueType} \term{Id}}
33    \end{Rules}}    \end{Rules}}
34    \newcommand{\StrandDeclRULES}{
35      \begin{Rules}{StrandDecl}
36        \RHS{\kw{strand} \term{Id} \kw{(} \nt{Params} \kw{)} \kw{\{} \LISTGRP{\nt{StrandStateDecl}} \LISTONEGRP{\nt{StrandMethod}} \kw{\}}}
37      \end{Rules}}
38  \newcommand{\StrandStateDeclRULES}{  \newcommand{\StrandStateDeclRULES}{
39    \begin{Rules}{StrandStateDecl}    \begin{Rules}{StrandStateDecl}
40      \RHS{\OPT{\kw{output}} \nt{VarDecl}}      \RHS{\OPT{\kw{output}} \nt{VarDecl}}
# Line 93  Line 91 
91    \begin{Rules}{Dimensions}    \begin{Rules}{Dimensions}
92      \RHS{\kw{[} \OPTGRP{\term{Int} \LISTGRP{\kw{,} \term{Int}}} \kw{]}}      \RHS{\kw{[} \OPTGRP{\term{Int} \LISTGRP{\kw{,} \term{Int}}} \kw{]}}
93    \end{Rules}}    \end{Rules}}
94  \newcommand{\CoordinationDeclRULES}{  \newcommand{\InitialDeclRULES}{
95    \begin{Rules}{CoordinationDecl}    \begin{Rules}{InitialDecl}
96      \RHS{\kw{initially} \nt{\GRP{\nt{Array} $\;|\;$ \nt{Collection}}} \kw{;}}      \RHS{\kw{initially} \nt{\GRP{\nt{Array} $\;|\;$ \nt{Collection}}} \kw{;}}
97    \end{Rules}}    \end{Rules}}
98  \newcommand{\ArrayRULES}{  \newcommand{\ArrayRULES}{

Legend:
Removed from v.2275  
changed lines
  Added in v.2276

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0