Added some basic structs and interfaces for phrase parsing

This commit is contained in:
Sasha Koshka 2022-10-19 22:46:20 -04:00
parent 82093865b0
commit 5520994072
2 changed files with 13 additions and 1 deletions

5
analyzer/block.go Normal file
View File

@ -0,0 +1,5 @@
package analyzer
type Block struct {
locatable
}

View File

@ -1,9 +1,16 @@
package analyzer
import "git.tebibyte.media/arf/arf/file"
import "git.tebibyte.media/arf/arf/parser"
import "git.tebibyte.media/arf/arf/infoerr"
type Phrase interface {
// Provided by phraseBase
Location () (location file.Location)
NewError (message string, kind infoerr.ErrorKind) (err error)
// Must be implemented by each individual phrase
ToString (indent int) (output string)
}
type ArbitraryPhrase struct {