Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
gocc
sm_*
.vscode
build/
*.debug
.vscode

6 changes: 3 additions & 3 deletions example/astx/ast.bnf
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ id : (_letter | '_') {_idchar} ;

/* Syntax elements */

<< import "github.com/goccmack/gocc/example/astx/ast" >>
<< import "github.com/maxcalandrelli/gocc/example/astx/ast" >>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to say goccmack

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@maxcalandrelli you can make this work locally by doing the following:

$ cd $GOPATH/github.com/maxcalandrelli/gocc
$ go mod tidy
$ go mod edit --replace github.com/goccmack/gocc=./

just remember not to commit the replace in your go.mod


StmtList :
StmtList :
Stmt << ast.NewStmtList($0) >>
| StmtList Stmt << ast.AppendStmt($0, $1) >>
;

Stmt :
Stmt :
id << ast.NewStmt($0) >>
;
131 changes: 131 additions & 0 deletions example/astx/ast.grammar/ast/ast.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

63 changes: 63 additions & 0 deletions example/astx/ast.grammar/ast/iface/ast.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading