mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-17 08:16:06 +09:00
basic: manual wip
This commit is contained in:
20
assets/tbas/doc/langref.tex
Normal file
20
assets/tbas/doc/langref.tex
Normal file
@@ -0,0 +1,20 @@
|
||||
This chapter descibes the \tbas{} language.
|
||||
|
||||
\section{Metasyntax}
|
||||
|
||||
In the descriptions of BASIC syntax, this conventions apply.
|
||||
\\
|
||||
|
||||
\begin{itemize}
|
||||
\item \codebf{"VERBATIM"} --- Type exactly as shown
|
||||
\item \code{IDENTIFIER} --- Replace \emph{identifier} with appropriate metavariable
|
||||
\item \code{[a]} --- Words within square brackets are optional
|
||||
\item \code{\{a|b\}} --- Choose either \code{a} or \code{b}
|
||||
\item \code{[a|b]} --- Optional version of above
|
||||
\item \code{a...} --- The preceding entity can be repeated
|
||||
\end{itemize}
|
||||
|
||||
|
||||
\section{Syntax In EBNF}
|
||||
|
||||
\small\verbatiminput{syntax.txt}
|
||||
Reference in New Issue
Block a user