| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| vitelle.railroad.png | < 2 hours ago | 121.1 kB | |
| C1316-VITELLE Manual.pdf | < 2 hours ago | 4.3 MB | |
| vitelle.ebnf | < 2 hours ago | 2.0 kB | |
| vitelle.eg | < 2 hours ago | 6.1 kB | |
| README.md | < 2 hours ago | 3.6 kB | |
| Winder Line Editor User Manual.pdf | < 2 hours ago | 1.7 MB | |
| C1316 Technical Reference-0.0.11.pdf | < 2 hours ago | 755.5 kB | |
| Totals: 7 Items | 6.8 MB | 2 | |
Vitelle - A modern successor to VTL-2
VITELLE
This section contains documents for those interested in writing VITELLE code.
The official documentation can be found at:
https://sourceforge.net/projects/vitelle/files/documents/
Syntax
First of all, VITELLE has a formal grammar that is presented in several formats:
vitelle.ebnf, which is represented in EBNF format;vitelle.railroad.png, which is described using a railroad diagram;vitelle.eg, which is described in my own "EG" format—very similar to EBNF.
You can find a post that discusses the grammar in detail at this link: https://www.lanky.eu/blog.lanky.eu/index.php?controller=post&action=view&id_post=43
Manual
I have written a manual specifically for VITELLE, modeled after the original VTL-2 manual. The layout and the topics covered are very similar to the original; this should not be seen as plagiarism, but rather as a tribute to a historic language that emerged during an interesting era for consumer computing.
The manual can be found in the following file: C1316-VITELLE Manual.pdf
Functions
The VCPU C1316 plus the following functions is called VITVM. You can directly call such methods from VITELLE code like in this example:
a max[12,13]
? a
VITVM includes the standard CencioVM FPU, then uses it's own interface. The compiler will lookup functions in the table using the namespace.name syntax, I have set a default for math namespace, so that math.max is the same as max.
The list of the supported function is as follows:
- real.add
- real.sub
- real.mul
- real.div
- real.mod
- real.eq
- real.ne
- real.lt
- real.le
- real.gt
- real.ge
- real.byInt
- real.toInt
- math.power
- math.sqrt
- math.abs
- math.floor
- math.ceil
- math.round
- math.truncate
- math.sin
- math.cos
- math.tan
- math.asin
- math.acos
- math.atan
- math.atan2
- math.log
- math.log10
- math.exp
- math.pi
- math.sinh
- math.cosh
- math.tanh
- math.nan
- math.infinite
- math.finite
- math.deg2rad
- math.rag2deg
- math.e
- math.tau
- math.clamp
- math.lerp
- math.mod
- math.min
- math.max
- math.seed
- math.random
- list.make
- list.count
- list.resize
- list.select
- list.update
- text.ord
- text.chr
- text.split
- text.join
- text.toReal
- text.byReal
- console.print
- console.printCode
- console.getLine
- console.getCode
Stack
If you are curious about how VITELLE works, you can explore this section for more details.
In short, I have built a stack-based architecture using a VCPU called C1316, which can be easily customized with library functions; the combination of the C1316 and these functions is known as VITVM.
I have an assembler for the C1316, called Ragman, and a line-oriented editor called Winder.
C1316
I have written a minimal VCPU called C1316, which features 24 instructions; for this project I have implemented only 12 of them:
- HLT
- XNR
- SYS
- PSH
- POP
- JMP
- JMS
- BRF
- BRT
- VRM
- VRS
- VRG
I built the VITVM using this reduced version of the C1316 and added the library functions specific to VITELLE.
Documentation for the VCPU itself can be found in the dedicated manual, titled C1316 Technical Reference-0.0.11.pdf.
Ragman
Ragman, the C1316 assembler, does not have a downloadable manual, but you can find more information at this link: https://sourceforge.net/projects/cencio/files/ragman/
Winder
Winder is a line-oriented editor; its manual is available under the name Winder Line Editor User Manual.pdf