From 5aba71f2e7f9c6f9094aa246fd3afb5ebc5a77c2 Mon Sep 17 00:00:00 2001 From: kortschak Date: Sun, 24 Aug 2014 10:08:53 +0930 Subject: [PATCH] Add go generate directive At this stage this is just a comment for users. The directive will have effect at go tip when go CL125580044 is submitted. When that happens, at tip parser code generation can be acheived in the default case with: go generate in the relevant package directory. --- quad/cquads/cquads.go | 2 ++ quad/nquads/nquads.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/quad/cquads/cquads.go b/quad/cquads/cquads.go index ea399f9eb..0632364d2 100644 --- a/quad/cquads/cquads.go +++ b/quad/cquads/cquads.go @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:generate ragel -Z -G2 parse.rl + // Package cquads implements parsing N-Quads like line-based syntax // for RDF datasets. // diff --git a/quad/nquads/nquads.go b/quad/nquads/nquads.go index 9652ebc0b..cb63647cd 100644 --- a/quad/nquads/nquads.go +++ b/quad/nquads/nquads.go @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:generate ragel -Z -G2 parse.rl + // Package nquads implements parsing the RDF 1.1 N-Quads line-based syntax // for RDF datasets. //