aboutsummaryrefslogtreecommitdiff
path: root/syntax/syntax.go
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/syntax.go')
-rw-r--r--syntax/syntax.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/syntax/syntax.go b/syntax/syntax.go
index 99548b1..d40d10e 100644
--- a/syntax/syntax.go
+++ b/syntax/syntax.go
@@ -2,10 +2,10 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// Package syntax provides a Skylark parser and abstract syntax tree.
+// Package syntax provides a Starlark parser and abstract syntax tree.
package syntax
-// A Node is a node in a Skylark syntax tree.
+// A Node is a node in a Starlark syntax tree.
type Node interface {
// Span returns the start and end position of the expression.
Span() (start, end Position)
@@ -64,7 +64,7 @@ func End(n Node) Position {
return end
}
-// A File represents a Skylark file.
+// A File represents a Starlark file.
type File struct {
commentsRef
Path string
@@ -84,7 +84,7 @@ func (x *File) Span() (start, end Position) {
return start, end
}
-// A Stmt is a Skylark statement.
+// A Stmt is a Starlark statement.
type Stmt interface {
Node
stmt()
@@ -183,7 +183,7 @@ func (x *IfStmt) Span() (start, end Position) {
// load(Module, "x", y="foo").
//
// The AST is slightly unfaithful to the concrete syntax here because
-// Skylark's load statement, so that it can be implemented in Python,
+// Starlark's load statement, so that it can be implemented in Python,
// binds some names (like y above) with an identifier and some (like x)
// without. For consistency we create fake identifiers for all the
// strings.
@@ -229,7 +229,7 @@ func (x *ReturnStmt) Span() (start, end Position) {
return x.Return, end
}
-// An Expr is a Skylark expression.
+// An Expr is a Starlark expression.
type Expr interface {
Node
expr()
@@ -407,7 +407,7 @@ func (x *DictEntry) Span() (start, end Position) {
// A LambdaExpr represents an inline function abstraction.
//
// Although they may be added in future, lambda expressions are not
-// currently part of the Skylark spec, so their use is controlled by the
+// currently part of the Starlark spec, so their use is controlled by the
// resolver.AllowLambda flag.
type LambdaExpr struct {
commentsRef