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

SCM Repository

[diderot] View of /branches/charisee_dev/doc/report/syntax.tex
ViewVC logotype

View of /branches/charisee_dev/doc/report/syntax.tex

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3269 - (download) (as text) (annotate)
Fri Oct 9 00:54:03 2015 UTC (4 years, 2 months ago) by cchiw
File size: 1563 byte(s)
dev branch
%!TEX root = report.tex
%
\chapter{Diderot Syntax}

\section{Notation}
We write \kw{symbol} for keywords and punctuation symbols, \term{Terminal} for
terminal symbols, and \nt{Nonterminal} for nonterminal symbols.
We use the following conventions:
\begin{Grammar}
  \begin{Rules}{Nonterminal}
    \RHS[For an optional \nt{A}.]{\OPT{\nt{A}}}
    \RHS[For zero or more \nt{A}s.]{\LIST{\nt{A}}}
    \RHS[For one or more \nt{A}s.]{\LISTONE{\nt{A}}}
    \RHS[For an optional \nt{A} \nt{B} pair.]{\OPTGRP{\nt{A} \nt{B}}}
    \RHS[For zero or more \nt{A} \nt{B} pairs.]{\LISTGRP{\nt{A} \nt{B}}}
    \RHS[For one or more \nt{A} \nt{B} pairs.]{\LISTONEGRP{\nt{A} \nt{B}}}
  \end{Rules}
\end{Grammar}

\section{Lexical issues}

\section{Reserved symbols and keywords}

\section{Collected syntax}
\begin{Grammar}[anchors]
  \ProgramRULES{}
  \DeclarationRULES{}
  \InputDeclRULES{}
  \StrandDeclRULES{}
  \ParamsRULES{}
  \ParamRULES{}
  \StrandStateDeclRULES{}
  \StrandMethodRULES{}
  \MethodIdRULES{}
  \BlockRULES{}
  \StmtRULES{}
  \VarDeclRULES{}
  \TypeRULES{}
  \ValueTypeRULES{}
  \DimensionsRULES{}
  \CoordinationDeclRULES{}
  \ArrayRULES{}
  \CollectionRULES{}
  \CreateRULES{}
  \IterationsRULES{}
  \IterationRULES{}
  \ExprRULES{}
  \TestExprRULES{}
  \AndExprRULES{}
  \CmpExprRULES{}
  \AddExprRULES{}
  \MulExprRULES{}
  \PowerExprRULES{}
  \ProbeExprRULES{}
  \PrefixExprRULES{}
  \SuffixExprRULES{}
  \SuffixRULES{}
  \IndexRULES{}
  \DerivExprRULES{}
  \AtomExprRULES{}
  \ArgumentsRULES{}
  \CmpOpRULES{}
  \AddOpRULES{}
  \MulOpRULES{}
\end{Grammar}%

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