Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bobimicroweber committed Aug 17, 2024
1 parent 64f306a commit 02cf743
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 4 deletions.
5 changes: 2 additions & 3 deletions davi.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package main

import (
"encoding/json"
"fmt"
. "github.com/DavinciScript/Davi/lexer"
"github.com/davecgh/go-spew/spew"
)

func main() {
Expand All @@ -23,8 +23,7 @@ func main() {
"token": tok,
"value": val,
}
out, _ := json.MarshalIndent(data, "", " ")
fmt.Println(string(out))
spew.Dump(data)
if tok == ILLEGAL {
break
}
Expand Down
11 changes: 10 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,13 @@ module github.com/DavinciScript/Davi

go 1.21.5

require github.com/lmittmann/tint v1.0.5 // indirect
require (
github.com/Jeffail/gabs/v2 v2.6.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/fatih/color v1.10.0 // indirect
github.com/lmittmann/tint v1.0.5 // indirect
github.com/mattn/go-colorable v0.1.8 // indirect
github.com/mattn/go-isatty v0.0.12 // indirect
github.com/relunctance/dump v0.1.16 // indirect
golang.org/x/sys v0.0.0-20201126233918-771906719818 // indirect
)
16 changes: 16 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,18 @@
github.com/Jeffail/gabs/v2 v2.6.0 h1:WdCnGaDhNa4LSRTMwhLZzJ7SRDXjABNP13SOKvCpL5w=
github.com/Jeffail/gabs/v2 v2.6.0/go.mod h1:xCn81vdHKxFUuWWAaD5jCTQDNPBMh5pPs9IJ+NcziBI=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/fatih/color v1.10.0 h1:s36xzo75JdqLaaWoiEHk767eHiwo0598uUxyfiPkDsg=
github.com/fatih/color v1.10.0/go.mod h1:ELkj/draVOlAH/xkhN6mQ50Qd0MPOk5AAr3maGEBuJM=
github.com/lmittmann/tint v1.0.5 h1:NQclAutOfYsqs2F1Lenue6OoWCajs5wJcP3DfWVpePw=
github.com/lmittmann/tint v1.0.5/go.mod h1:HIS3gSy7qNwGCj+5oRjAutErFBl4BzdQP6cJZ0NfMwE=
github.com/mattn/go-colorable v0.1.8 h1:c1ghPdyEDarC70ftn0y+A/Ee++9zz8ljHG1b13eJ0s8=
github.com/mattn/go-colorable v0.1.8/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc=
github.com/mattn/go-isatty v0.0.12 h1:wuysRhFDzyxgEmMf5xjvJ2M9dZoWAXNNr5LSBS7uHXY=
github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
github.com/relunctance/dump v0.1.16 h1:CKhUMW3Tkuc7DnNiSJ+xG6Jd3WLebm3GwMKc8FoRJV8=
github.com/relunctance/dump v0.1.16/go.mod h1:7/KZKQ9CRE4pIM1F63LoVOOTmY2hyaLY4K9msY9rSFM=
golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201126233918-771906719818 h1:f1CIuDlJhwANEC2MM87MBEVMr3jl5bifgsfj90XAF9c=
golang.org/x/sys v0.0.0-20201126233918-771906719818/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
1 change: 1 addition & 0 deletions lexer/lexer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package lexer_test

import (
"fmt"
. "github.com/DavinciScript/Davi/lexer"
"strings"
"testing"
"unicode/utf8"
Expand Down

0 comments on commit 02cf743

Please sign in to comment.