Skip to content

Commit b44d65d

Browse files
authored
Merge branch 'main' into dependabot/pip/pymdown-extensions-10.21.3
2 parents 2d21984 + 83f2958 commit b44d65d

18 files changed

Lines changed: 82 additions & 16 deletions

‎docs/acs.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ PRINT "Arc Cosine value of a is "; ACS(a)
2525
* This function is 100% Sinclair BASIC Compatible
2626
* If the given argument type is not float, it will be [converted](cast.md) to float before operating with it.
2727

28-
##See also
28+
## See also
2929

3030
* [SIN](sin.md) and [ASN](asn.md)
3131
* [TAN](tan.md) and [ATN](atn.md)

‎docs/asn.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ PRINT "Arc Sine value of a is "; ASN(a)
2222

2323
## Remarks
2424

25-
* This function is 100% Sinclair BASIC Compatible
26-
* If the given argument type is not float, it will be [converted](cast.md) to float before operating with it.
25+
* This function is 100% Sinclair BASIC Compatible
26+
* If the given argument type is not float, it will be [converted](cast.md) to float before operating with it.
2727

2828
## See also
2929

‎docs/bin.md‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# BIN
2+
3+
## Syntax
4+
5+
```
6+
BIN <binary numbeŕ>
7+
```
8+
9+
10+
## Description
11+
12+
`BIN` is used to denote a binary number. It exists mostly for compatibility reasons with Sinclair BASIC.
13+
You can denote a binary number by prefixing it with `BIN`, but also using the `%` prefix or the `b` suffix.
14+
15+
For example, the number `5` can be denoted as follows:
16+
17+
* `BIN 101`
18+
* `101b`
19+
* `%101`
20+
21+
These three expressions are equivalent.
22+
23+
24+
## Remarks
25+
26+
* This keyword is 100% Sinclair BASIC Compatible
27+
* Binary numbers are always considered unsigned integers and the type depends on the size of the number.

‎docs/identifier.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Identifiers shown in bold are taken from the Sinclair BASIC (beware their meanin
2121
* **[AT](at.md)**
2222
* **[ATN](atn.md)** **(function)**
2323
* **[bAND](bitwiselogic.md#bAND)** **(operator)**
24+
* **[BIN](bin.md)**
2425
* **[bNOT](bitwiselogic.md#bNOT)** **(operator)**
2526
* **[bOR](bitwiselogic.md#bOR)** **(operator)**
2627
* **[bXOR](bitwiselogic.md#bXOR)** **(operator)**
@@ -100,6 +101,7 @@ Identifiers shown in bold are taken from the Sinclair BASIC (beware their meanin
100101
* **[STOP](stop.md)**
101102
* **[STR](str.md)** **(function)** (Can also be written as **STR$**)
102103
* **[SUB](sub.md)**
104+
* **[TAB](tab.md)**
103105
* **[TAN](tan.md)** **(function)**
104106
* **[THEN](if.md)**
105107
* **[TO](to.md)**

‎docs/print.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,12 @@ PRINT "Variable 'a' contains the value: "; a
6767
```
6868

6969
## Changing the print position
70-
You can change the current _cursor_ position using the [AT](at.md) modifier:
70+
You can change the current _cursor_ position using the [AT](at.md) or [TAB](tab.md) modifiers:
7171

7272
```
7373
PRINT AT 5, 0; "This message starts at ROW 5"
7474
PRINT AT 10, 10; "This message starts at ROW 10, COLUMN 10"
75+
PRINT TAB 5; "This starts at column 5"
7576
```
7677

7778
Again, you can chain all `PRINT` _items_ using semicolon:
@@ -115,6 +116,7 @@ NEXT i
115116

116117
* [CLS](cls.md)
117118
* [AT](at.md)
119+
* [TAB](tab.md)
118120
* [PAPER](paper.md)
119121
* [BORDER](border.md)
120122
* [INVERSE](inverse.md)

‎docs/requirements.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ packaging==24.2
1919
paginate==0.5.7
2020
pathspec==0.12.1
2121
platformdirs==4.3.6
22-
Pygments==2.20.0
23-
pymdown-extensions==10.21.3
22+
Pygments==2.18.0
23+
pymdown-extensions==10.16.1
2424
python-dateutil==2.9.0.post0
2525
PyYAML==6.0.2
2626
pyyaml_env_tag==0.1

‎docs/tab.md‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# TAB
2+
3+
## Syntax
4+
```
5+
PRINT TAB <value>;
6+
```
7+
8+
`TAB` is not a statement, but a [PRINT](print.md) modifier. It is used to move the cursor to a specific column.
9+
The ZX Spectrum screen has 32 columns, numbered from 0 to 31.
10+
11+
When `TAB` is used, the cursor moves to the specified column. If the current position is already past the requested column, the cursor moves to that column on the next line.
12+
13+
14+
```
15+
PRINT TAB 10; "Hello"
16+
```
17+
18+
The above example will print "Hello" starting at column 10 of the current row.
19+
20+
## Remarks
21+
* This modifier is Sinclair BASIC compatible.
22+
* If the value is 32 or more, it is taken modulo 32.
23+
24+
## See also
25+
* [PRINT](print.md)
26+
* [AT](at.md)
27+
* [POS](library/pos.md)
28+
* [CSRLIN](library/csrlin.md)

‎src/api/optimize.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from src.api.config import OPTIONS
1919
from src.api.constants import CLASS, CONVENTION, SCOPE, TYPE
2020
from src.api.errmsg import warning_not_used
21-
from src.ast import Ast, NodeVisitor
21+
from src.ast_ import Ast, NodeVisitor
2222
from src.symbols import sym as symbols
2323
from src.symbols.id_ import ref
2424

‎src/arch/z80/visitor/translator_inst_visitor.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from src.arch.interface.quad import Quad
1111
from src.arch.z80.backend import Backend
1212
from src.arch.z80.backend.common import BOOL_t, F16_t, F_t, I8_t, I16_t, I32_t, STR_t, U8_t, U16_t, U32_t
13-
from src.ast import NodeVisitor
13+
from src.ast_ import NodeVisitor
1414
from src.symbols import sym
1515

1616

‎src/arch/z80/visitor/translator_visitor.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from src.arch.z80 import backend
1818
from src.arch.z80.backend.runtime import LABEL_REQUIRED_MODULES, RUNTIME_LABELS
1919
from src.arch.z80.backend.runtime import Labels as RuntimeLabel
20-
from src.ast.tree import ChildrenList
20+
from src.ast_.tree import ChildrenList
2121
from src.symbols import sym as symbols
2222
from src.symbols.symbol_ import Symbol
2323
from src.symbols.type_ import Type

0 commit comments

Comments
 (0)