-
Notifications
You must be signed in to change notification settings - Fork 171
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
Dlang support #431
Dlang support #431
Conversation
documentation and most of the examples. Examples are run with rdmd as `rdmd -g -w -unittest -betterC example.d`. Adds some files to the .gitignore that are created when doing an intree build with make.
Currently failing CI with
I will fix that next. |
… API documentation will need fixup later.
Thanks a lot for working on this, @abenedic ! Great work! Can you split the work into smaller commits? This will make it easier for review and describe each change in commit message. E.g. one commit per each example, one (or a few) for source code, one (or a few) for documentation. Ideally each commit should build and pass the tests. You can either do this in the current PR (then I will wait until all commits in the PR look good, and then merge) or you can push into a separate branch that will be later merged into master, creating multiple PRs (not necessarily one for PR, but not all in one --- then I can merge commits as you make progress in that branch). Whatever is more convenient for you. |
Absolutely! After I finish getting everything working properly I will go back and fix up things to look nicer. Currently CI is failing with
I should have some time later today to fix that and move over more examples. |
Currently CI is failing with
I will look over the documentation generation more thoroughly later. |
…test to make sure it was actually working well.
…from C still in progress. Minor formatting change to CMakeLists.txt
I noticed that one of the tests failed due to the extension being '??' which is set by run_tests.py.in if the first line of the file isn't one of the language dependent options, "// re2d" like for D. Still in the process of converting over the examples. |
You don't need to convert them all in one go --- maybe it will be easier to split patches and start review process before converting all examples (if there's something that needs to be reworked, you'll have less work to do). Also, please note that C has more examples than Go and Rust, and you can convert only those present in Go and Rust (others are optional). |
I am going to keep this branch open, and pull bits from this into other pull requests. I just updated it to use the new master. |
Use examples provided in #431 (suitably modified).
Use examples provided in #431 (suitably modified).
Use examples provided in #431 (suitably modified).
Use examples provided in #431 (suitably modified).
Use examples provided in #431 (suitably modified).
Use examples provided in #431 (suitably modified).
Use examples provided in #431 (suitably modified).
Use examples provided in #431 (suitably modified).
Initial support for the D programming language. So far I have a few examples working and building and am working on fixing up the rest. I haven't done anything with the documentation yet, but can fix that up after all the examples are changed over. I am far from an expert in D, so the examples may not be very idiomatic.
So far I can build
re2d
with cmake and make and can run the examples like: