From 8e87b3ff6299610d7dc1d93d4026773193e373b0 Mon Sep 17 00:00:00 2001 From: mohammed Date: Sat, 16 Mar 2024 17:22:43 +0100 Subject: [PATCH] add: logger + error handling let variables --- .idea/discord.xml | 7 +++ .idea/leango.iml | 4 ++ .idea/vcs.xml | 6 ++ .idea/workspace.xml | 62 ++++++++++++------- Logger/logger.go | 17 +++++ Token/handler.go | 39 ++++++++---- Variable/variable.go | 8 +-- examples/foo.leango | 2 +- .../errors/no_value_after_equal_sing.leango | 1 + .../let/errors/same_name_variables.leango | 2 + go.mod | 5 ++ go.sum | 12 ++++ main.go | 4 ++ 13 files changed, 130 insertions(+), 39 deletions(-) create mode 100644 .idea/discord.xml create mode 100644 .idea/leango.iml create mode 100644 .idea/vcs.xml create mode 100644 Logger/logger.go create mode 100644 examples/let/errors/no_value_after_equal_sing.leango create mode 100644 examples/let/errors/same_name_variables.leango create mode 100644 go.sum diff --git a/.idea/discord.xml b/.idea/discord.xml new file mode 100644 index 0000000..30bab2a --- /dev/null +++ b/.idea/discord.xml @@ -0,0 +1,7 @@ + + + + + \ No newline at end of file diff --git a/.idea/leango.iml b/.idea/leango.iml new file mode 100644 index 0000000..7ee078d --- /dev/null +++ b/.idea/leango.iml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 3728beb..79763dd 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,7 +4,15 @@