Skip to content

Commit 2d1712a

Browse files
Merge pull request #1757 from herd/asl-code-snippets-bento
[ASL] removed code snippets information and bento tool
2 parents 97c6274 + 54e715b commit 2d1712a

File tree

9 files changed

+5
-174
lines changed

9 files changed

+5
-174
lines changed

.github/workflows/build-asl-reference.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
workflow_dispatch:
55
pull_request:
66
paths:
7-
- 'internal/bento.mll'
87
- 'asllib/doc/**'
98
- 'asllib/aslspec/**'
109
- '.github/workflows/build-asl-reference.yml'

Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ HERD_REGRESSION_TEST = _build/default/internal/herd_regression_test.exe
2828
HERD_DIYCROSS_REGRESSION_TEST = _build/default/internal/herd_diycross_regression_test.exe
2929
HERD_CATALOGUE_REGRESSION_TEST = _build/default/internal/herd_catalogue_regression_test.exe
3030
HERD_ASSUMPTIONS_TEST = _build/default/internal/herd_assumptions_test.exe
31-
BENTO = _build/default/tools/bento.exe
3231
ASLREF = _build/default/asllib/aslref.exe
3332
CHECK_OBS = _build/default/internal/check_obs.exe
3433
all: build
@@ -975,8 +974,8 @@ clean-asl-pseudocode:
975974

976975
.PHONY: asldoc
977976
asldoc: Version.ml
978-
@ dune build -j $(J) --profile $(DUNE_PROFILE) $(BENTO) $(ASLREF)
979-
@ $(MAKE) $(MFLAGS) -C asllib/doc all BENTO=$(CURDIR)/$(BENTO) ASLREF=$(CURDIR)/$(ASLREF)
977+
@ dune build -j $(J) --profile $(DUNE_PROFILE) $(ASLREF)
978+
@ $(MAKE) $(MFLAGS) -C asllib/doc all ASLREF=$(CURDIR)/$(ASLREF)
980979

981980
.PHONY: clean-asldoc
982981
clean-asldoc:

asllib/doc/ASLReference.tex

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,6 @@
55
\input{ASLmacros}
66

77
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
8-
%% Macros for including code snippets from the ASLRef implementation
9-
\input{ASLTypingLines}
10-
\input{ASLSemanticsLines}
11-
\input{ASLTypeSatisfactionLines}
12-
\input{ASLStaticModelLines}
13-
\input{ASLStaticInterpreterLines}
14-
\input{ASLStaticEnvLines}
15-
\input{ASLASTUtilsLines}
16-
\input{ASLASTLines}
178
\newcommand{\definitiontests}{../tests/ASLDefinition.t/}
189
\newcommand{\syntaxtests}{../tests/ASLSyntaxReference.t/}
1910
\newcommand{\typingtests}{../tests/ASLTypingReference.t/}

asllib/doc/ASLmacros.tex

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,6 @@
133133
% To visualize:
134134
% showframe
135135
]{geometry}
136-
\input{ifempty}
137-
\input{ifcode}
138-
\input{control}
139136

140137
\newcommand\aslrefterm[0]{\href{https://github.com/herd/herdtools7/tree/master/asllib}{aslref}}
141138
\newcommand\linuxbashshellterm[0]{Linux bash shell}
@@ -198,15 +195,6 @@
198195
\newcommand\ExampleDef[1]{\hypertarget{example-#1}{}\subsubsection{Example: #1}}
199196
\newcommand\ExampleRef[1]{\hyperlink{example-#1}{Example: #1}}
200197

201-
\ifcode
202-
% First argument is \<rule>Begin, second is \<rule>End, third is the file name.
203-
% Example: for SemanticsRule.Lit, use the following:
204-
% \CodeSubsection{\LitBegin}{\LitEnd}{../Interpreter.ml}
205-
\newcommand\CodeSubsection[3]{\subsection{Code} \VerbatimInput[firstline=#1, lastline=#2]{#3}}
206-
\else
207-
\newcommand\CodeSubsection[3]{}
208-
\fi
209-
210198
\definecolor{verylightgray}{rgb}{240,240,240}
211199

212200
\newcommand\ASLListing[3]{
@@ -215,14 +203,10 @@
215203
\end{center}
216204
}
217205

218-
\ifcode
219206
% First argument is \<rule>Begin, second is \<rule>End, third is the file name.
220207
% Example: for SemanticsRule.Lit, use the following:
221208
% \CodeSubsubsection{\LitBegin}{\LitEnd}{../Interpreter.ml}
222-
\newcommand\CodeSubsubsection[3]{\subsubsection{Code} \VerbatimInput[firstline=#1, lastline=#2]{#3}}
223-
\else
224-
\newcommand\CodeSubsubsection[3]{}
225-
\fi
209+
\newcommand\CodeSubsection[3]{}
226210

227211
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
228212
% Typesetting macros

asllib/doc/Makefile

Lines changed: 1 addition & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
BENTO=../../_build/default/tools/bento.exe
21
ASLREF=../../_build/install/default/bin/aslref
32
LATEX=pdflatex
43
BIBTEX=bibtex
@@ -9,27 +8,9 @@ GENERATED_ELEMENTS_TEX=generated_elements.tex
98

109
all: generated_spec $(PDFS)
1110

12-
short:
13-
$(MAKE) $(MFLAGS) NOEMPTY=1 all
14-
15-
code:
16-
$(MAKE) $(MFLAGS) CODE=1 all
17-
18-
no-empty:
19-
$(MAKE) $(MFLAGS) NOEMPTY=1 all
20-
21-
CONTROLS=ifempty.tex ifcode.tex
22-
23-
.PHONY: control
24-
control: control.tex $(CONTROLS)
25-
2611
LATEXMK=latexmk
2712

28-
ASLReference.pdf: control\
29-
ASLASTLines.tex ASLTypeSatisfactionLines.tex ASLStaticModelLines.tex ASLStaticInterpreterLines.tex\
30-
ASLStaticEnvLines.tex ASLEnvLines.tex ASLASTUtilsLines.tex\
31-
ASLTypingLines.tex ASLSemanticsLines.tex ASLStaticOperationsLines.tex\
32-
desugarLines.tex
13+
ASLReference.pdf:
3314
if command -v $(LATEXMK) >/dev/null 2>&1; \
3415
then \
3516
$(LATEXMK) -pdf ASLReference.tex; \
@@ -45,46 +26,9 @@ ASLReference.pdf: control\
4526
generated_spec: asl.spec
4627
dune exec -- aslspec --render asl.spec;
4728

48-
ASLASTLines.tex: ../AST.mli
49-
$(BENTO) $< > $@
50-
51-
ASLTypeSatisfactionLines.tex: ../types.ml
52-
$(BENTO) $< > $@
53-
54-
ASLEnvLines.tex: ../env.ml
55-
$(BENTO) $< > $@
56-
57-
ASLSemanticsLines.tex: ../Interpreter.ml
58-
$(BENTO) $< > $@
59-
60-
desugarLines.tex: ../desugar.ml
61-
$(BENTO) $< > $@
62-
63-
ASL%Lines.tex: ../%.ml
64-
$(BENTO) $< > $@
65-
66-
.PHONY: force
67-
68-
ifdef CODE
69-
ifcode.tex: force
70-
@echo "\\\\newif\\ifcode\\\\codetrue" >$@
71-
else
72-
ifcode.tex: force
73-
@echo "\\\\newif\\ifcode\\\\codefalse" >$@
74-
endif
75-
76-
ifdef SHOW_EMPTY
77-
ifempty.tex: force
78-
@echo "\\\\newif\\ifempty\\\\emptytrue" >$@
79-
else
80-
ifempty.tex: force
81-
@echo "\\\\newif\\ifempty\\\\emptyfalse" >$@
82-
endif
83-
8429
.PHONY: clean
8530
clean:
8631
/bin/rm -f $(PDFS)
87-
/bin/rm -f *Lines.tex
8832
/bin/rm -f $(GENERATED_ELEMENTS_TEX)
8933
/bin/rm -f *.aux *.log *.fls *.log *.toc *.fdb_latexmk *~
9034
/bin/rm -f $(CONTROLS)

asllib/doc/Statements.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2044,7 +2044,7 @@ \subsection{Semantics}
20442044

20452045

20462046
\RenderProseAndFormally{eval_stmt_SReturn}
2047-
\CodeSubsubsection{\SReturnBegin}{\EvalSReturnEnd}{../Interpreter.ml}
2047+
\CodeSubsection{\SReturnBegin}{\EvalSReturnEnd}{../Interpreter.ml}
20482048

20492049
\SemanticsRuleDef{EExprListM}
20502050
\RenderRelation{eval_expr_list_m}

asllib/doc/control.tex

Lines changed: 0 additions & 13 deletions
This file was deleted.

tools/bento.mll

Lines changed: 0 additions & 70 deletions
This file was deleted.

tools/dune

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
mheader
1111
splitdot
1212
trTrue
13-
bento
1413
lexMiaou)
1514

1615
(executables
@@ -52,7 +51,6 @@
5251
cat2html
5352
mlog2name
5453
mcat2includes
55-
bento
5654
miaou
5755
cat2lisp
5856
dot2desc
@@ -95,7 +93,6 @@
9593
cat2html7
9694
mlog2name7
9795
mcat2includes7
98-
bento
9996
miaou7
10097
cat2lisp
10198
dot2desc7

0 commit comments

Comments
 (0)