Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 1 KB

README.md

File metadata and controls

37 lines (28 loc) · 1 KB

Mini Language Compiler

Codacy Badge

CMake

Learning to parsing and to be mini compiler for small language

Run executable code compiler.exe with command prompt.

Membuat input :

  • (edit file "program.txt")
  • Isi program yang ingin dites.

Contoh isi diterima:

begin
  input(z) {menerima masukan z berupa nilai integer}
  do
    if (z<10) then
    begin
      a=z*2
      output(a)
    end
    else
    begin
      output(z*10)
    end
    input(z)
  while (z < 999)
end

Contoh tidak diterima :

jika end dihilangkan