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 datacharone ASCII characterinta 32 bit integerpreca number with a decimal point of 4 bytesptra 4 byte pointer address
Other key words #
funthe function key wordwhilea while loopwriteoutput as stdoutreadinput as stdinwithuses external filesifdo something if condition trueelifelse do something if condition trueelseelse do somethingtakesplace for parameters and typesreturna returnreturnstells function what type to return
Here is the syntax:
Syntax
