Skip to content

Commit fc2207e

Browse files
committed
Updates for v1.2.1:
Velvc v1.2.1 * Possible fix for #1
1 parent 8bbaf03 commit fc2207e

4 files changed

Lines changed: 10 additions & 2 deletions

File tree

examples/b-hello.velv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
push "hello there." call println halt 0

examples/hello.velv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
push "hello there."
22
call println
3-
halt 0
3+
halt 0

velvc/parser/parser.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ type Parser struct {
3636
}
3737

3838
func New(tokenL [][]tokens.Token) Parser {
39+
filtered := [][]tokens.Token{}
40+
for _, tl := range tokenL {
41+
if len(tl) > 0 {
42+
filtered = append(filtered, tl)
43+
}
44+
}
45+
3946
return Parser{tokenL: tokenL}
4047
}
4148

velvc/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.2.0
1+
1.2.1

0 commit comments

Comments
 (0)