Expression analysis stub
This commit is contained in:
parent
92e8205bb9
commit
30636e18aa
|
@ -1 +1,32 @@
|
|||
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