Skip to content
This repository has been archived by the owner on Feb 5, 2023. It is now read-only.

Latest commit

 

History

History
23 lines (14 loc) · 377 Bytes

README.md

File metadata and controls

23 lines (14 loc) · 377 Bytes

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