Permalink
Browse files

add comment

  • Loading branch information...
1 parent 4d6ec0f commit 253f161f22e60d73570ca65908b39c265708358b @haya14busa committed Dec 3, 2016
Showing with 6 additions and 4 deletions.
  1. +6 −4 go/export.go
View
@@ -7,12 +7,14 @@ import (
"github.com/haya14busa/go-vimlparser/token"
)
-func (self *VimLParser) Parse(reader *StringReader, filename string) ast.Node {
- return newAstNode(self.parse(reader), filename)
+// Parse parses Vim script in reader and returns Node.
+func (p *VimLParser) Parse(reader *StringReader, filename string) ast.Node {
+ return newAstNode(p.parse(reader), filename)
}
-func (self *ExprParser) Parse() ast.Expr {
- return newExprNode(self.parse(), "")
+// Parse parses Vim script expression.
+func (p *ExprParser) Parse() ast.Expr {
+ return newExprNode(p.parse(), "")
}
// ----

0 comments on commit 253f161

Please sign in to comment.