Skip to content

Commit

Permalink
Merge pull request #363 from pataei/main
Browse files Browse the repository at this point in the history
Adding first draft of P4's abstract syntax to formalization doc
  • Loading branch information
pataei authored Oct 10, 2022
2 parents fbdc1b6 + 73bfc0b commit 6627cf7
Show file tree
Hide file tree
Showing 22 changed files with 3,620 additions and 543 deletions.
8 changes: 1 addition & 7 deletions docs/petr4spec/Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@

SPEC=Petr4-spec

all: build/${SPEC}.pdf

build/${SPEC}.pdf: ${SPEC}.mdk
madoko --pdf -vv --png --odir=build $<

build/${SPEC}.pdf: grammar.mdk p4.json

html: ${SPEC}.mdk grammar.mdk p4.json
madoko -vv --png --odir=build $<
madoko -vv --odir=build $<

clean:
${RM} -rf build
3,387 changes: 2,956 additions & 431 deletions docs/petr4spec/Petr4-spec.mdk

Large diffs are not rendered by default.

Binary file removed docs/petr4spec/figs/actions.png
Binary file not shown.
Binary file removed docs/petr4spec/figs/compileeval.png
Binary file not shown.
Binary file removed docs/petr4spec/figs/evalmultiple.png
Binary file not shown.
Binary file removed docs/petr4spec/figs/headerstack.png
Binary file not shown.
Binary file removed docs/petr4spec/figs/maudataflow.png
Binary file not shown.
Binary file removed docs/petr4spec/figs/p4checksum.png
Binary file not shown.
Binary file removed docs/petr4spec/figs/p4interface.png
Binary file not shown.
Binary file removed docs/petr4spec/figs/p4prg.png
Binary file not shown.
Binary file removed docs/petr4spec/figs/p4transition.png
Binary file not shown.
Binary file removed docs/petr4spec/figs/packetfilter.png
Binary file not shown.
Binary file removed docs/petr4spec/figs/parserstatemachine.png
Binary file not shown.
Binary file removed docs/petr4spec/figs/prgswitch.png
Binary file not shown.
Binary file removed docs/petr4spec/figs/subparser.png
Binary file not shown.
Binary file removed docs/petr4spec/figs/switcharch.png
Binary file not shown.
Binary file removed docs/petr4spec/figs/vssarch.png
Binary file not shown.
Binary file removed docs/petr4spec/figs/vssmau.png
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/petr4spec/make.bat
Original file line number Diff line number Diff line change
@@ -1 +1 @@
madoko --pdf -vv --png --odir=build Petr4-spec.mdk
madoko --pdf -vv --odir=build Petr4-spec.mdk
601 changes: 540 additions & 61 deletions docs/petr4spec/ops.tex

Large diffs are not rendered by default.

163 changes: 121 additions & 42 deletions lib/checker.ml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/types.mli
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ and Type : sig
| IntType of
{ tags: 'a;
expr: Expression.t}
(** Fixed-with signed integers *)
(** Fixed-width signed integers *)
| BitType of
{ tags: 'a;
expr: Expression.t}
Expand Down

0 comments on commit 6627cf7

Please sign in to comment.