File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # This workflow will build a golang project
2+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
3+
4+ name : Go
5+
6+ on :
7+ push :
8+ branches : [ "main" ]
9+ pull_request :
10+ branches : [ "main" ]
11+
12+ jobs :
13+
14+ build :
15+ runs-on : ubuntu-latest
16+ steps :
17+ - uses : actions/checkout@v4
18+
19+ - name : Set up Go
20+ uses : actions/setup-go@v4
21+ with :
22+ go-version : ' 1.25.1'
23+
24+ - name : Build
25+ run : go build .
Original file line number Diff line number Diff line change 77 "github.com/shubhdevelop/Lox/LoxErrors"
88 "github.com/shubhdevelop/Lox/ast"
99 "github.com/shubhdevelop/Lox/environment"
10- "github.com/shubhdevelop/Lox/token "
10+ "github.com/shubhdevelop/Lox/Token "
1111)
1212
1313type Interpreter struct {}
Original file line number Diff line number Diff line change 88
99 interpreter "github.com/shubhdevelop/Lox/Interpreter"
1010 "github.com/shubhdevelop/Lox/parser"
11- "github.com/shubhdevelop/Lox/scanner "
11+ "github.com/shubhdevelop/Lox/Scanner "
1212 "github.com/shubhdevelop/Lox/state"
1313)
1414
Original file line number Diff line number Diff line change 55 "os"
66
77 "github.com/shubhdevelop/Lox/state"
8- "github.com/shubhdevelop/Lox/token "
8+ "github.com/shubhdevelop/Lox/Token "
99)
1010
1111type RuntimeError struct {
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ package scanner
33import (
44 "errors"
55 "github.com/shubhdevelop/Lox/LoxErrors"
6- "github.com/shubhdevelop/Lox/token "
6+ "github.com/shubhdevelop/Lox/Token "
77 "strconv"
88)
99
Original file line number Diff line number Diff line change 11package ast
22
33import (
4- "github.com/shubhdevelop/Lox/token "
4+ "github.com/shubhdevelop/Lox/Token "
55)
66
77type ExprVisitor interface {
Original file line number Diff line number Diff line change 11package ast
22
33import (
4- "github.com/shubhdevelop/Lox/token "
4+ "github.com/shubhdevelop/Lox/Token "
55)
66
77type StmtVisitor interface {
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ package environment
33import (
44 "fmt"
55 loxErrors "github.com/shubhdevelop/Lox/LoxErrors"
6- "github.com/shubhdevelop/Lox/token "
6+ "github.com/shubhdevelop/Lox/Token "
77)
88
99type Environment struct {
Original file line number Diff line number Diff line change 55
66 "github.com/shubhdevelop/Lox/LoxErrors"
77 "github.com/shubhdevelop/Lox/ast"
8- "github.com/shubhdevelop/Lox/token "
8+ "github.com/shubhdevelop/Lox/Token "
99)
1010
1111type Parser struct {
Original file line number Diff line number Diff line change @@ -113,11 +113,11 @@ func main() {
113113 "Literal : interface{} value" ,
114114 "Unary : token.Token operator, Expr right" ,
115115 "Variable : token.Token name" ,
116- }, []string {"github.com/shubhdevelop/Lox/token " })
116+ }, []string {"github.com/shubhdevelop/Lox/Token " })
117117
118118 defineAst (outputDir , "Stmt" , []string {
119119 "ExpressionStmt : Expr expression" ,
120120 "PrintStmt : Expr expression" ,
121121 "Var : token.Token name, Expr initializer" ,
122- }, []string {"github.com/shubhdevelop/Lox/token " })
122+ }, []string {"github.com/shubhdevelop/Lox/Token " })
123123}
You can’t perform that action at this time.
0 commit comments