Skip to content

Commit

Permalink
s/TokenEOF/tokenEOF
Browse files Browse the repository at this point in the history
  • Loading branch information
Hill Ma committed Jun 19, 2020
1 parent 6329be2 commit 8b6c2b8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions lisp1_5/lex.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type TokType int

const (
tokenError TokType = iota
TokenEOF
tokenEOF
tokenAtom
tokenConst
tokenNumber
Expand Down Expand Up @@ -132,7 +132,7 @@ func (l *lexer) next() *token {
case r == ';':
l.skipToNewline()
case r == EofRune:
return mkToken(TokenEOF, "EOF")
return mkToken(tokenEOF, "EOF")
case r == '\n':
return mkToken(tokenNewline, "\n")
case r == '(':
Expand Down
4 changes: 2 additions & 2 deletions lisp1_5/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ func (p *Parser) back(tok *token) {
func (p *Parser) SExpr() *Expr {
tok := p.next()
switch tok.typ {
case TokenEOF:
case tokenEOF:
return nil
case tokenQuote:
return p.quote()
Expand Down Expand Up @@ -176,7 +176,7 @@ func (p *Parser) quote() *Expr {
func (p *Parser) List() *Expr {
tok := p.next()
switch tok.typ {
case TokenEOF:
case tokenEOF:
panic(EOF("eof"))
case tokenQuote:
return p.quote()
Expand Down
6 changes: 3 additions & 3 deletions lisp1_5/toktype_string.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8b6c2b8

Please sign in to comment.