Skip to content

Commit 187312c

Browse files
committed
$haltcompiler
1 parent 1dbd413 commit 187312c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/New Features/Preprocessing.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,13 @@ $alias seq = "a" \
9797
"c"
9898
print(seq) --> abc
9999
```
100+
101+
## `$haltcompiler`
102+
103+
This statement will stop the parser processing further code.
104+
105+
```pluto
106+
print(io.contents("index.pluto"):split("\n$haltcompiler"):back():strip()) --> Anything after the $haltcompiler statement is not processed as Pluto source code.
107+
$haltcompiler
108+
Anything after the $haltcompiler statement is not processed as Pluto source code.
109+
```

0 commit comments

Comments
 (0)