Skip to content

Commit

Permalink
Merge 38945cc into f27faa3
Browse files Browse the repository at this point in the history
  • Loading branch information
iphydf committed Sep 16, 2018
2 parents f27faa3 + 38945cc commit 72e5897
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions BUILD.bazel
@@ -1,21 +1,19 @@
load("@ai_formation_hazel//:hazel.bzl", "hazel_library")
load("@io_tweag_rules_haskell//haskell:haskell.bzl", "haskell_library", "haskell_test")
load("//third_party/haskell/alex:build_defs.bzl", "alex_lexer")
load("//third_party/haskell/happy:build_defs.bzl", "happy_parser")
load("//tools/project:build_defs.bzl", "project")

project()

genrule(
alex_lexer(
name = "Lexer",
srcs = ["src/Tokstyle/Cimple/Lexer.x"],
outs = ["src/Tokstyle/Cimple/Lexer.hs"],
cmd = "alex -o $@ $<",
src = "src/Tokstyle/Cimple/Lexer.x",
)

genrule(
happy_parser(
name = "Parser",
srcs = ["src/Tokstyle/Cimple/Parser.y"],
outs = ["src/Tokstyle/Cimple/Parser.hs"],
cmd = "happy -agc -o $@ $<",
src = "src/Tokstyle/Cimple/Parser.y",
)

haskell_library(
Expand Down

0 comments on commit 72e5897

Please sign in to comment.