Permalink
Browse files

Merge pull request #127 from Chyroc/fix-comment

fix comment
  • Loading branch information...
mattn committed Mar 20, 2018
2 parents 804acf7 + 9296431 commit 45d93882b6a0a4a02bd31a9265d325c44a8a4964
Showing with 5 additions and 5 deletions.
  1. +2 −2 ast/pos.go
  2. +1 −1 ast/token.go
  3. +2 −2 parser/lexer.go
@@ -6,13 +6,13 @@ type Position struct {
Column int
}

// Pos interface provies two functions to get/set the position for expression or statement.
// Pos interface provides two functions to get/set the position for expression or statement.
type Pos interface {
Position() Position
SetPosition(Position)
}

// PosImpl provies commonly implementations for Pos.
// PosImpl provides commonly implementations for Pos.
type PosImpl struct {
pos Position
}
@@ -1,7 +1,7 @@
package ast

type Token struct {
PosImpl // StmtImpl provide Pos() function.
PosImpl // PosImpl provides get/set the position function.
Tok int
Lit string
}
@@ -15,7 +15,7 @@ const (
)

// Error provides a convenient interface for handling runtime error.
// It can be Error inteface with type cast which can call Pos().
// It can be Error interface with type cast which can call Pos().
type Error struct {
Message string
Pos ast.Position
@@ -474,7 +474,7 @@ eos:
return string(ret), nil
}

// Lexer provides inteface to parse codes.
// Lexer provides interface to parse codes.
type Lexer struct {
s *Scanner
lit string

0 comments on commit 45d9388

Please sign in to comment.