IsValidExecIdent returns true if the given token is a valid component of an Exec mode identifier
()
| 111 | // IsValidExecIdent returns true if the given token is a valid component |
| 112 | // of an Exec mode identifier |
| 113 | func (tk *Token) IsValidExecIdent() bool { |
| 114 | return (tk.IsGo() || tk.Tok == token.IDENT || tk.Tok == token.SUB || tk.Tok == token.DEC || tk.Tok == token.INT || tk.Tok == token.FLOAT || tk.Tok == token.ASSIGN) |
| 115 | } |
| 116 | |
| 117 | // String is the stringer version which includes the token ID |
| 118 | // in addition to the string literal |