fspl/parser/fspl/reserved.go

14 lines
237 B
Go

package fsplParser
func IsReserved (identifier string) bool {
switch identifier {
case "true", "false", "nil",
"if", "match", "switch",
"loop", "for",
"then", "in",
"break", "return":
return true
default: return false
}
}