From 64032d766e2a7ab10cb5ba2ac49d9ccbd366f7be Mon Sep 17 00:00:00 2001 From: Irmen de Jong Date: Mon, 13 Aug 2018 10:51:05 +0200 Subject: [PATCH] %option --- docs/source/programming.rst | 5 + docs/source/syntaxreference.rst | 24 +- il65/antlr/il65.g4 | 2 +- il65/examples/imported.ill | 1 + il65/examples/test.ill | 1 + il65/src/il65/ast/AstChecker.kt | 5 + il65/src/il65/parser/il65.tokens | 162 +++++----- il65/src/il65/parser/il65Lexer.java | 434 +++++++++++++------------- il65/src/il65/parser/il65Lexer.tokens | 162 +++++----- il65/src/il65/parser/il65Parser.java | 284 ++++++++--------- lib65/c64lib.ill | 2 +- 11 files changed, 557 insertions(+), 525 deletions(-) diff --git a/docs/source/programming.rst b/docs/source/programming.rst index 1b5a96500..8ee22501c 100644 --- a/docs/source/programming.rst +++ b/docs/source/programming.rst @@ -164,6 +164,11 @@ Values will usually be part of an expression or assignment statement:: byte counter = 42 ; variable of size 8 bits, with initial value 42 +Note that the various keywords for the data type and variable type (``byte``, ``word``, ``const``, etc.) +cannot be used as *identifiers* elsewhere. You can't make a variable, block or subroutine with the name ``byte`` +for instance. + + Special types: const and memory-mapped ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/docs/source/syntaxreference.rst b/docs/source/syntaxreference.rst index a3c1e4ef0..9d34ffd2e 100644 --- a/docs/source/syntaxreference.rst +++ b/docs/source/syntaxreference.rst @@ -94,15 +94,14 @@ Directives You can import modules one at a time, and importing a module more than once has no effect. -.. data:: %saveregisters +.. data:: %option