Commit d866ea6e authored by POTTIER Francois's avatar POTTIER Francois

Updated demos/calc-two-dune.

parent c7bb8530
...@@ -31,7 +31,7 @@ clean:: ...@@ -31,7 +31,7 @@ clean::
EXTRA := \ EXTRA := \
calc-dune \ calc-dune \
calc-param-dune \ calc-param-dune \
# calc-two-dune \ calc-two-dune \
# calc-incremental-dune \ # calc-incremental-dune \
# calc-inspection-dune \ # calc-inspection-dune \
# generate-printers-dune \ # generate-printers-dune \
......
.PHONY: all clean test .PHONY: all clean test
DUNE := jbuilder DUNE := dune
EXECUTABLE := calc.exe EXECUTABLE := calc.exe
all: all:
......
(jbuild_version 1) (ocamllex
(modules lexer)
(ocamllex (lexer)) )
; Compile tokens.mly into a definition of the type [token]. ; Compile tokens.mly into a definition of the type [token].
(menhir ( (menhir
(modules (tokens)) (modules tokens)
(flags ("--only-tokens")) (flags ("--only-tokens"))
)) )
; Compile reverse.mly into a parser. ; Compile reverse.mly into a parser.
(menhir ( (menhir
(modules (tokens reverse common)) (modules tokens reverse common)
(merge_into reverse) (merge_into reverse)
(flags ( (flags (
"--external-tokens" "Tokens" "--external-tokens" "Tokens"
"--unused-token" "LPAREN" "--unused-token" "LPAREN"
"--unused-token" "RPAREN" "--unused-token" "RPAREN"
)) ))
)) )
; Compile algebraic.mly into a parser. ; Compile algebraic.mly into a parser.
(menhir ( (menhir
(modules (tokens algebraic common)) (modules tokens algebraic common)
(merge_into algebraic) (merge_into algebraic)
(flags ("--external-tokens" "Tokens")) (flags ("--external-tokens" "Tokens"))
)) )
(executable (executable
((name calc)) (name calc)
) )
(lang dune 1.4)
(using menhir 2.0)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment