mirror of
https://github.com/irmen/prog8.git
synced 2024-12-23 09:32:43 +00:00
changed source file suffix to .p8
This commit is contained in:
parent
8ff72167a4
commit
e382be89db
4
.gitignore
vendored
4
.gitignore
vendored
@ -18,4 +18,6 @@ parser.out
|
|||||||
parsetab.py
|
parsetab.py
|
||||||
.pytest_cache/
|
.pytest_cache/
|
||||||
docs/build
|
docs/build
|
||||||
out/
|
out/
|
||||||
|
**/*.interp
|
||||||
|
**/*.tokens
|
||||||
|
@ -60,7 +60,7 @@ fun importModule(filePath: Path) : Module {
|
|||||||
|
|
||||||
|
|
||||||
fun discoverImportedModule(name: String, importedFrom: Path, position: Position?): Path {
|
fun discoverImportedModule(name: String, importedFrom: Path, position: Position?): Path {
|
||||||
val fileName = "$name.ill"
|
val fileName = "$name.p8"
|
||||||
val locations = mutableListOf(Paths.get(importedFrom.parent.toString()))
|
val locations = mutableListOf(Paths.get(importedFrom.parent.toString()))
|
||||||
|
|
||||||
val propPath = System.getProperty("prog8.libdir")
|
val propPath = System.getProperty("prog8.libdir")
|
||||||
|
@ -35,7 +35,7 @@ that assembles it into the final program.
|
|||||||
Module source code files
|
Module source code files
|
||||||
------------------------
|
------------------------
|
||||||
|
|
||||||
A module source file is a text file with the ``.ill`` suffix, containing the program's source code.
|
A module source file is a text file with the ``.p8`` suffix, containing the program's source code.
|
||||||
It consists of compilation options and other directives, imports of other modules,
|
It consists of compilation options and other directives, imports of other modules,
|
||||||
and source code for one or more code blocks.
|
and source code for one or more code blocks.
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ Program
|
|||||||
Consists of one or more *modules*.
|
Consists of one or more *modules*.
|
||||||
|
|
||||||
Module
|
Module
|
||||||
A file on disk with the ``.ill`` suffix. It contains *directives* and *code blocks*.
|
A file on disk with the ``.p8`` suffix. It contains *directives* and *code blocks*.
|
||||||
Whitespace and indentation in the source code are arbitrary and can be tabs or spaces or both.
|
Whitespace and indentation in the source code are arbitrary and can be tabs or spaces or both.
|
||||||
You can also add *comments* to the source code.
|
You can also add *comments* to the source code.
|
||||||
One moudule file can *import* others, and also import *library modules*.
|
One moudule file can *import* others, and also import *library modules*.
|
||||||
@ -246,7 +246,7 @@ Floats are stored in the 5-byte 'MFLPT' format that is used on CBM machines,
|
|||||||
and also most float operations are specific to the Commodore-64.
|
and also most float operations are specific to the Commodore-64.
|
||||||
This is because routines in the C-64 BASIC and KERNAL ROMs are used for that.
|
This is because routines in the C-64 BASIC and KERNAL ROMs are used for that.
|
||||||
So floating point operations will only work if the C-64 BASIC ROM (and KERNAL ROM)
|
So floating point operations will only work if the C-64 BASIC ROM (and KERNAL ROM)
|
||||||
are banked in (and your code imports the ``c64lib.ill``)
|
are banked in (and your code imports the ``c64lib.p8``)
|
||||||
|
|
||||||
The largest 5-byte MFLPT float that can be stored is: **1.7014118345e+38** (negative: **-1.7014118345e+38**)
|
The largest 5-byte MFLPT float that can be stored is: **1.7014118345e+38** (negative: **-1.7014118345e+38**)
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ Syntax Reference
|
|||||||
Module file
|
Module file
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
This is a file with the ``.ill`` suffix, containing *directives* and *code blocks*, described below.
|
This is a file with the ``.p8`` suffix, containing *directives* and *code blocks*, described below.
|
||||||
The file is a text file wich can also contain:
|
The file is a text file wich can also contain:
|
||||||
|
|
||||||
Lines, whitespace, indentation
|
Lines, whitespace, indentation
|
||||||
|
Loading…
Reference in New Issue
Block a user