Skip to content

Commit 1b7538a

Browse files
committed
Implement Hierarchical Visitor Pattern to evaluate the Abstract Syntax Tree.
1 parent 465e989 commit 1b7538a

File tree

8 files changed

+1216
-17
lines changed

8 files changed

+1216
-17
lines changed

ast/acceptor.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package ast
2+
3+
type Acceptor interface {
4+
Accept(visitor Visitor) error
5+
}

0 commit comments

Comments
 (0)