コード例 #1
0
ファイル: compiler.go プロジェクト: bossen/bdsolver
func expectToken(found token, expected string, s *scanner.Scanner) {
	if found.tokentype != expected {
		fmt.Println("On line ", s.LineNumber(), "; Expected ", expected, " found ", found.tokentype, " with value '", found.value, "'")
		os.Exit(1)
	}

}