fix indentation issues

This commit is contained in:
Starfflame 2021-05-11 01:58:09 -05:00
parent d86cec723e
commit 86d380a67e
1 changed files with 13 additions and 0 deletions

View File

@ -1,6 +1,19 @@
local Dict = require("Dictionary") local Dict = require("Dictionary")
local Stack = require("Stack") local Stack = require("Stack")
function add(stack: Stack)
local a: any =stack:pop()
local b: any=stack:pop()
if a is number and b is number then
local c=a+b
stack:push(c)
else
error("invalid operands for add operation!")
end
end
function dot(s: Stack)
print(s:pop())
end