Skip to content

Commit

Permalink
Move comment
Browse files Browse the repository at this point in the history
  • Loading branch information
DQNEO committed May 21, 2020
1 parent ec1fea0 commit 977973f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 14 additions & 0 deletions scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,20 @@ func (tn *Tokenizer) tokenize() []*Token {
case '`':
sval := tn.read_raw_string()
tok = tn.makeToken(T_STRING, sval)

/**
Operators and punctuation
https://golang.org/ref/spec#Operators_and_punctuation
+ & += &= && == != ( )
- | -= |= || < <= [ ]
* ^ *= ^= <- > >= { }
/ << /= <<= ++ = := , ;
% >> %= >>= -- ! ... . :
&^ &^=
*/
case '/':
c, _ = tn.bs.get()
if c == '/' {
Expand Down
14 changes: 0 additions & 14 deletions token.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,20 +170,6 @@ func (tok *Token) isSemicolon() bool {
return tok.isPunct(";")
}

/**
Operators and punctuation
https://golang.org/ref/spec#Operators_and_punctuation
+ & += &= && == != ( )
- | -= |= || < <= [ ]
* ^ *= ^= <- > >= { }
/ << /= <<= ++ = := , ;
% >> %= >>= -- ! ... . :
&^ &^=
*/

func (tok *Token) dump() {
sval := tok.getSval()
s := Sprintf("tok: line=%d, type=%s, sval=\"%s\"\n",
Expand Down

0 comments on commit 977973f

Please sign in to comment.