Go is an amazing, awesome programming language. But it has in many ways too much, and in other ways, too little. This is an attempt to balance it.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

main.go 445B

1234567891011121314151617181920
  1. package main
  2. import (
  3. "fmt"
  4. "github.com/champii/og/lib/common"
  5. "github.com/champii/og/lib/og"
  6. )
  7. //go:generate java -Xmx500M -cp "./parser/antlr4-4.7.2-SNAPSHOT-complete.jar" org.antlr.v4.Tool -Dlanguage=Go ./parser/Og.g4 -visitor -o .
  8. //go:generate ./scripts/fix_parser_imports.sh
  9. func main() {
  10. parseArgs(func(options *common.OgConfig) {
  11. ogLang := og.NewOg(options)
  12. if err := ogLang.Run(); err != nil {
  13. fmt.Println(err)
  14. }
  15. })
  16. }