Skip to content

Commit

Permalink
Updates for v1.2.1:
Browse files Browse the repository at this point in the history
 Velvc v1.2.1
  * Possible fix for #1
  • Loading branch information
voidwyrm-2 committed Feb 16, 2025
1 parent 8bbaf03 commit fc2207e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions examples/b-hello.velv
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
push "hello there." call println halt 0
2 changes: 1 addition & 1 deletion examples/hello.velv
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
push "hello there."
call println
halt 0
halt 0
7 changes: 7 additions & 0 deletions velvc/parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ type Parser struct {
}

func New(tokenL [][]tokens.Token) Parser {
filtered := [][]tokens.Token{}
for _, tl := range tokenL {
if len(tl) > 0 {
filtered = append(filtered, tl)
}
}

return Parser{tokenL: tokenL}
}

Expand Down
2 changes: 1 addition & 1 deletion velvc/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.0
1.2.1

0 comments on commit fc2207e

Please sign in to comment.