From 86d380a67e4caaee2954d760e69a79b589f5c009 Mon Sep 17 00:00:00 2001 From: Starfflame Date: Tue, 11 May 2021 01:58:09 -0500 Subject: [PATCH] fix indentation issues --- CoreWords.tl | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/CoreWords.tl b/CoreWords.tl index 3d5e870..2c17349 100644 --- a/CoreWords.tl +++ b/CoreWords.tl @@ -1,6 +1,19 @@ local Dict = require("Dictionary") 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