LMH01 / alpha_tui

My attempt to write a runtime environment and debugger for the Alpha-Notation used in my SysInf lecture.
GNU General Public License v3.0
15 stars 1 forks source link

Panic when program contains empty line with whitespaces #81

Closed LMH01 closed 5 months ago

LMH01 commented 5 months ago

When loading the following program

init::          p(anfang) := 0 //init von anfang
                p(ende) := 5 //und ende
                p(h1) := 0
loop::          a := p(ende) - p(anfang) //ist das
                if a = 0 then goto ende //ende erreicht?
                a := p(anfang) + 1 
                p(anfang) := a
irgendwas::     p(h1) := a + 4 //irgendwas wird gemacht
                goto loop
ende::

alpha_tui panics:

grafik

LMH01 commented 5 months ago

panic is caused by the empty line

LMH01 commented 5 months ago

fixed and will be included in the next release