cruz-lang
·127 words·1 min
Cruzlang #
Cruz Lang is a simple explicit static typed language.
The compiler written in python is called shark and uses ply.lex for lexical analysis.
It has 5 primitive data types:
Data types #
- byteone byte of data
- charone ASCII character
- inta 32 bit integer
- preca number with a decimal point of 4 bytes
- ptra 4 byte pointer address
Other key words #
- funthe function key word
- whilea while loop
- writeoutput as stdout
- readinput as stdin
- withuses external files
- ifdo something if condition true
- elifelse do something if condition true
- elseelse do something
- takesplace for parameters and types
- returna return
- returnstells function what type to return
Here is the syntax:
Syntax
