Y-asc

yet another stupid compiler
Log | Files | Refs | README | git clone https://git.ne02ptzero.me/git/Y-asc

commit bc4efab1237f9dcd9021ca3fecbfde779c2517e3
parent d4db51a85afeb72fc00709db409cc1f6dbe0ea47
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Mon, 26 Jun 2017 22:01:00 +0200

Add(Tex): Add section about variables names

Diffstat:
Mtex/yasc.tex | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/tex/yasc.tex b/tex/yasc.tex @@ -51,6 +51,15 @@ \section{Getting Started} \section{Types, Operators and Expressions} \subsection{Variable names} + Variable names are made up of letters and digits; the first character + must be a letter. A letter is, in this context, a character inside + the English dictionnary, through the letters \texttt{a} to \texttt{z}. + All other symbols from other languages / Unicode are not supported, + and will throw an error upon reading. The underscore \texttt{\_} + count as a letter. All variable must be in lowercase, as uppercase + names are reserved to namespaces. + Keywords like \texttt{if}, \texttt{else}, \texttt{struct}, etc., are + reserved: They cannot be used as variables names. \subsection{Namespaces} \subsection{Data types and Sizes} \subsection{Constants}