Add all the files from the interpreter repo
Signed-off-by: jmug <u.g.a.mariano@gmail.com>
This commit is contained in:
parent
230fe61b12
commit
0acd1d41e8
34 changed files with 3784 additions and 0 deletions
16
pkg/ast/string.go
Normal file
16
pkg/ast/string.go
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
package ast
|
||||
|
||||
import "code.jmug.me/jmug/interpreter-in-go/pkg/token"
|
||||
|
||||
type StringLiteral struct {
|
||||
Token token.Token
|
||||
Value string
|
||||
}
|
||||
|
||||
func (s *StringLiteral) expressionNode() {}
|
||||
func (s *StringLiteral) TokenLiteral() string {
|
||||
return s.Token.Literal
|
||||
}
|
||||
func (s *StringLiteral) String() string {
|
||||
return s.Token.Literal
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue