-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* repacks frontc into three independent packages The printc command is no longer installed. The `ctoxml` and `calipso` packages are distributed in separate packages. * adds tests and more docs * adds missing files * adds github actions test * runs the test only on pull requests * copies the test artifacts to the test.t folder to make windows happy, apparently links do not work on windows :) * adds the missing menhir dependency * removes deprecated names as they do not woron on macOS and Windows The difference is in the register of letters, e.g., `Frontc` vs `FrontC`, but it doesn't really affect the module names so there was no need to introduce them at all.
- Loading branch information
Showing
20 changed files
with
1,258 additions
and
743 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Tests | ||
|
||
on: | ||
- pull_request | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- macos-latest | ||
- ubuntu-latest | ||
- windows-latest | ||
ocaml-version: | ||
- 4.11.0 | ||
- 4.10.1 | ||
- 4.09.1 | ||
- 4.08.1 | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Use OCaml ${{ matrix.ocaml-version }} | ||
uses: avsm/setup-ocaml@v1 | ||
with: | ||
ocaml-version: ${{ matrix.ocaml-version }} | ||
|
||
- run: opam pin add FrontC.dev . --yes --with-test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# This file is generated by dune, edit dune-project instead | ||
opam-version: "2.0" | ||
version: "4.0.0" | ||
synopsis: "Parses C programs to an abstract syntax tree" | ||
description: | ||
"FrontC provides a C parser and an OCaml definition of an abstract syntax treee for the C language. It also includes AST pretty-printers in plain and XML formats." | ||
maintainer: ["Ivan Gotovchits <[email protected]>"] | ||
authors: ["Hugues Cassé <[email protected]> et al"] | ||
license: "LGPL-2.0-only" | ||
tags: ["FrontC" "C" "parser" "XML"] | ||
homepage: "https://github.com/BinaryAnalysisPlatform/FrontC" | ||
bug-reports: "https://github.com/BinaryAnalysisPlatform/FrontC/issues" | ||
depends: [ | ||
"dune" {>= "2.7" & >= "2.7" & build} | ||
"menhir" | ||
"odoc" {with-doc} | ||
] | ||
build: [ | ||
["dune" "subst"] {dev} | ||
[ | ||
"dune" | ||
"build" | ||
"-p" | ||
name | ||
"-j" | ||
jobs | ||
"@install" | ||
"@runtest" {with-test} | ||
"@doc" {with-doc} | ||
] | ||
] | ||
dev-repo: "git+https://github.com/BinaryAnalysisPlatform/FrontC.git" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
.PHONY: build install test doc uninstall clean | ||
build: | ||
dune build | ||
|
||
install: | ||
dune install | ||
|
||
test: | ||
dune test | ||
|
||
doc: | ||
dune build @doc | ||
|
||
uninstall: | ||
dune uninstall | ||
|
||
clean: | ||
dune clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# This file is generated by dune, edit dune-project instead | ||
opam-version: "2.0" | ||
version: "4.0.0" | ||
synopsis: "Rewrites C programs to remove non-structured control-flow" | ||
description: | ||
"Calipso analyzes programs in order to replace all nonstructured instructions (i.e., break, return, switch...) by branches and, then, remove all branches. See https://dblp.org/rec/journals/tsi/CasseFRS02 for more details" | ||
maintainer: ["Ivan Gotovchits <[email protected]>"] | ||
authors: ["Hugues Cassé <[email protected]> et al"] | ||
license: "LGPL-2.0-only" | ||
tags: ["FrontC" "C" "analysis"] | ||
homepage: "https://github.com/BinaryAnalysisPlatform/FrontC" | ||
bug-reports: "https://github.com/BinaryAnalysisPlatform/FrontC/issues" | ||
depends: [ | ||
"dune" {>= "2.7"} | ||
"FrontC" {>= "4.0.0"} | ||
"odoc" {with-doc} | ||
] | ||
build: [ | ||
["dune" "subst"] {dev} | ||
[ | ||
"dune" | ||
"build" | ||
"-p" | ||
name | ||
"-j" | ||
jobs | ||
"@install" | ||
"@runtest" {with-test} | ||
"@doc" {with-doc} | ||
] | ||
] | ||
dev-repo: "git+https://github.com/BinaryAnalysisPlatform/FrontC.git" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,19 @@ | ||
(executable | ||
(name calipso) | ||
(public_name calipso) | ||
(libraries FrontC)) | ||
(package calipso) | ||
(name calipso) | ||
(public_name calipso) | ||
(libraries FrontC calipso) | ||
(modules calipso)) | ||
|
||
(executable | ||
(package calipso) | ||
(name stat) | ||
(public_name calipso_stat) | ||
(libraries FrontC calipso) | ||
(modules stat)) | ||
|
||
(library | ||
(name calipso) | ||
(wrapped false) | ||
(modules algo gen label reduce) | ||
(libraries FrontC)) |
Oops, something went wrong.