lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


2014-05-04 1:51 GMT+02:00 Tim Hill <drtimhill@gmail.com>:

> You forgot COBOL .. i think Lua needs PIC statements.

> require"cobol"()
> MOVE '10000' TO 'SALARY'
> MOVE '500' TO 'INCREMENT'
> ADD 'INCREMENT' AND 'SALARY' GIVING 'NEW_SALARY'
> print(NEW_SALARY)
10500