antlr-play

command module
v0.0.0-...-10dc115 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

README

antlr-play

Antlr pretty printing example for the Go runtime

To use it

$ go get github.com/wlan0/antlr-play && cd $GOPATH/src/github.com/wlan0/antlr-play
$ ./build.sh Test.G4 
$ ./antlr-play input
(expression 
 (expression 
  (expression 
   (expression  'a1')
   '*'
   (expression  '('
    (expression 
     (expression 
      (expression 
       (expression  'a2')
       '+'
       (expression  'a3')
      )
      '+'
      (expression  'a4')
     )
     '-'
     (expression 
      (expression  'a5')
      '^'
      (expression 
       (expression  'a6')
       '^'
       (expression  '('
        (expression 
         (expression  'a8')
         '+'
         (expression 
          (expression  'a9')
          '/'
          (expression  'a10')
         )
        )
        ')')
      )
     )
    )
    ')')
  )
  '*'
  (expression  'a11')
 )
 '*'
 (expression  'a12')
)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL