mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-26 08:38:47 +00:00
Moved spec
This commit is contained in:
parent
a812851efd
commit
0f8213ae7d
18 changed files with 2 additions and 1 deletions
|
|
@ -1,27 +0,0 @@
|
|||
\chapter{Concrete Syntax and Semantics}
|
||||
\label{sec:concrete_syntax}
|
||||
|
||||
In this chapter we describe the concrete syntax of the language as it is recognized by the parser. In the
|
||||
syntactic description we will use extended Backus-Naur form with the following conventions:
|
||||
|
||||
\begin{itemize}
|
||||
\item nonterminals are presented in \nonterm{italics};
|
||||
\item concrete terminals are \term{grayed out};
|
||||
\item classes of terminals are \token{CAPITALIZED};
|
||||
\item a postfix ``$^\star$'' designates zero-or-more repetitions;
|
||||
\item square brackets ``$[\dots]$'' designate zero-or-one repetition;
|
||||
\item round brackets ``$(\dots)$'' are used for grouping;
|
||||
\item alteration is denoted by ``$\alt$'', sequencing by juxtaposition;
|
||||
\item a colon ``$:$'' separates a nonterminal being defined from its definition.
|
||||
\end{itemize}
|
||||
|
||||
In the description below we will take in-line code samples in blockquotes "..." which are not considered as a
|
||||
part of concrete syntax.
|
||||
|
||||
\input{03.01.lexical_structure}
|
||||
\input{03.02.compilation_units}
|
||||
\input{03.03.scope_expressions}
|
||||
\input{03.04.expressions}
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue