Expression analysis stub
This commit is contained in:
parent
7c0e96777b
commit
bed87812d5
@ -1 +1,32 @@
|
|||||||
package analyzer
|
package analyzer
|
||||||
|
|
||||||
|
import "fmt"
|
||||||
|
import "git.tebibyte.media/sashakoshka/fspl/entity"
|
||||||
|
|
||||||
|
func (this *Tree) analyzeExpression (
|
||||||
|
expression entity.Expression,
|
||||||
|
) (
|
||||||
|
entity.Expression,
|
||||||
|
error,
|
||||||
|
) {
|
||||||
|
switch expression.(type) {
|
||||||
|
|
||||||
|
default: panic(fmt.Sprint (
|
||||||
|
"BUG: analyzer doesnt know about expression ",
|
||||||
|
expression))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (this *Tree) analyzeStatement (
|
||||||
|
statement entity.Statement,
|
||||||
|
) (
|
||||||
|
entity.Statement,
|
||||||
|
error,
|
||||||
|
) {
|
||||||
|
switch statement.(type) {
|
||||||
|
|
||||||
|
default: panic(fmt.Sprint (
|
||||||
|
"BUG: analyzer doesnt know about statement ",
|
||||||
|
statement))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user