Implemented expression parsing
This commit is contained in:
parent
1b99722cd8
commit
0ed071a7ee
18 changed files with 618 additions and 99 deletions
13
src/errors/KeywordNotImplemented.go
Normal file
13
src/errors/KeywordNotImplemented.go
Normal file
|
@ -0,0 +1,13 @@
|
|||
package errors
|
||||
|
||||
import "fmt"
|
||||
|
||||
// KeywordNotImplemented error is created when we find a keyword without an implementation.
|
||||
type KeywordNotImplemented struct {
|
||||
Keyword string
|
||||
}
|
||||
|
||||
// Error generates the string representation.
|
||||
func (err *KeywordNotImplemented) Error() string {
|
||||
return fmt.Sprintf("Keyword not implemented: '%s'", err.Keyword)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue