Skip to content

Commit f60c278

Browse files
committed
Comment that Program fields aren't really intended for use
1 parent 43dd587 commit f60c278

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

parser/parser.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ func ParseProgram(src []byte, config *ParserConfig) (prog *Program, err error) {
7373

7474
// Program is the abstract syntax tree for an entire AWK program.
7575
type Program struct {
76+
// These fields aren't intended to be used or modified directly,
77+
// but are exported for the interpreter (Program itself needs to
78+
// be exported in package "parser", otherwise these could live in
79+
// "internal/ast".)
7680
Begin []Stmts
7781
Actions []Action
7882
End []Stmts

0 commit comments

Comments
 (0)