Skip to content

Commit

Permalink
removed parse tree logger
Browse files Browse the repository at this point in the history
  • Loading branch information
mkarten committed Oct 2, 2024
1 parent 245a9a5 commit 73a2134
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions interpreter/env.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package interpreter

import (
"encoding/json"
"fmt"
"github.com/Eclalang/Ecla/interpreter/eclaDecl"
"os"
Expand Down Expand Up @@ -160,9 +159,6 @@ func (env *Env) Execute() {
// Parsing
pars := parser.Parser{Tokens: env.Tokens, ErrorHandler: env.ErrorHandle}
env.SyntaxTree = pars.Parse()
data, _ := json.Marshal(env.SyntaxTree)
os.WriteFile("syntaxTree.json", data, 0644)
fmt.Println(json.Marshal(env.SyntaxTree))

// Execute
Run(env)
Expand Down

0 comments on commit 73a2134

Please sign in to comment.