Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

aimestereo/go-dsl-floor-division-issue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DSL Parsing Issue

Reproduce

git clone [email protected]:aimestereo/go-dsl-floor-division-issue.git
cd go-dsl-floor-division-issue
go mod tidy -v

go test -v -race -buildvcs ./...

Output

=== RUN   TestOperationParser
2024/11/03 19:03:20 Testing: +
main.Expr{
  Op: "+",
}
2024/11/03 19:03:20 Testing: !=
main.Expr{
  Op: "!=",
}
2024/11/03 19:03:20 Testing: &&
main.Expr{
  Op: "&&",
}
2024/11/03 19:03:20 Testing: /
main.Expr{
  Op: "/",
}
2024/11/03 19:03:20 Testing: //
main.Expr{
}
    parser_test.go:29: Did not expect an error but got:
        1:3: unexpected token "<EOF>"
--- FAIL: TestOperationParser (0.00s)
FAIL
FAIL    dsl     0.224s
FAIL

Redraw diagram

Expecting railroad pre-built as /tmp/bin/railroad

go run .
open open diagram/dsl.html

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published