main.go 471 B

1234567891011121314
  1. // Copyright 2014 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. // This file holds the go generate command to run yacc on the grammar in expr.y.
  5. // To build expr:
  6. // % go generate
  7. // % go build
  8. //go:generate goyacc -o expr.go -p "expr" expr.y
  9. // Expr is a simple expression evaluator that serves as a working example of
  10. // how to use Go's yacc implementation.
  11. package main