Yx icon indicating copy to clipboard operation
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:

  1. a definition of a variable
  2. an expression
  3. an 'if-else'
  4. a return