-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ATDD : ATDgen backend to generate dlang
code
#349
Conversation
…ad from jsonvalue
eb4579c
to
463326e
Compare
atdd.opam
Outdated
bug-reports: "https://github.com/ahrefs/atd/issues" | ||
depends: [ | ||
"dune" {>= "2.8"} | ||
"ocaml" {>= "4.08"} | ||
"atd" {>= "2.11.0"} | ||
"cmdliner" {>= "1.1.0"} | ||
"re" | ||
"alcotest" {with-test} | ||
"odoc" {with-doc} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@elrandar I noticed that you updated this file by hand to remove alcotest
and to add ldc2
. This file is generated, it shouldn't be updated by hand. Check dune-project
instead.
… from deps. should be installed manually for running tests
16eabee
to
c38c131
Compare
c38c131
to
17b4887
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't looked closely but it looks good in spirit. Great job.
I forgot to switch to |
A heads-up: I'm planning to release atd (all opam packages) tomorrow or early next week. This will include atdd. |
CHANGES: * atdts: Stop compiler errors on generated typescript (ahrefs/atd#348) * atdts: Don't fail on `wrap` constructs (ahrefs/atd#353) * atdcat: New option `-remove-wraps` which pretty-prints the type definitions without `wrap` constructs (ahrefs/atd#353) * atdd: Add `dlang` backend to generate D code from ATD definitions (ahrefs/atd#349) * new tool: atddiff. Compares two versions of an ATD file and reports possible incompatibilities in the JSON data. Atddiff ships as part of the `atd` package together with `atdcat` (ahrefs/atd#352, ahrefs/atd#358)
CHANGES: * atdts: Stop compiler errors on generated typescript (ahrefs/atd#348) * atdts: Don't fail on `wrap` constructs (ahrefs/atd#353) * atdcat: New option `-remove-wraps` which pretty-prints the type definitions without `wrap` constructs (ahrefs/atd#353) * atdd: Add `dlang` backend to generate D code from ATD definitions (ahrefs/atd#349) * new tool: atddiff. Compares two versions of an ATD file and reports possible incompatibilities in the JSON data. Atddiff ships as part of the `atd` package together with `atdcat` (ahrefs/atd#352, ahrefs/atd#358)
ATDD
This PR adds the
atdd
backend, generatingdlang
serializers and deserializers from ATD definitions. Supported features are:<dlang import="std.stdint : uint32_t">
Also adds unit tests for testing and checking compilation of generated code. To execute those the
ldc
compiler is needed, more information inreadme.md
.PR checklist
CHANGES.md
is up-to-date