Yx
Yx copied to clipboard
Yx: a language only for demo use
Yx
This is a language only for demo use.
Grammar
Type
It has int
and bool
type in default(but no bool variable)
It also support definition of struct
Arithmetic operation
arithmetic operation can only be '+', '-' or '==', '!='.
Statement
A statement can only be:
- a definition of a variable
- an expression
- an 'if-else'
- a return