Skip to content

lyhyl/Human-Resource-Machine-Code-Gen

Repository files navigation

Human-Resource-Machine-Code-Gen

Read Sample XD

var x;
{
	read(x);
	write(x);
}

Declare variable

use var x(y) to bind variable x to address of y

use var x to declare variable x with auto-assign address

Use variable

a just use it

*a use it as address

Flow control

you can use if-else(no elseif), while, break, continue

Assignment

you can use a = expression, a++, a--

Operator

you can use +, -

Compare

you can use >, <, >=, <=, ==, !=

IO

build-in function read(x), write(x)

About

Write C style code and compile it into HRM Program

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages