antlr-d ~master
ANTLR4 runtime library
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
ANTRLR D Target
The ANTLR D Target represents an full featured and tested port of ANTLR 4.
This covers the runtime library, the tool to translate the syntax into D code and the tests for the runtime library. See also ANTLR version 4.9.2.
Like other language ports, this D runtime library uses UTF-8.
Install
- Download or clone the package
- Change directory to the root of the package and call dub.
- You will find the generated ANTLR D-runtime library in lib/libantlr-d.a
- The ANTLR tool for D will be generated by make build_examples (./build.ps1 build_examples on windows) in build/antlr4-4.9.2/tool/target/antlr4-4.9.2-complete.jar
Consider providing a shortcut to make it easy to use ANTLR. For example, define an alias:
alias antlr4='java -jar path/to/antlr-d/build/antlr4-4.9.2/tool/target/antlr4-4.9.2-complete.jar'
Dependencies
ANTLR tool
- java 1.8
- maven
- 7-Zip (Only on windows)
Examples
Check out the two simple but complete examples:
- [Building a Calculator Using a Listener]
- [Building a Calculator Using a Visitor]
Extension versus other ANTLR runtime versions
The data type to store text is Variant. This is handy for the rewriting feature on an indent-based syntax like Python. In this case we need a structure representing the text as well as the number of indents.
- ~master released 3 years ago
- funkwerk-mobility/antlr-d
- BSD
- Copyright (c) 2012-2019 The ANTLR Project. All rights reserved.
- Authors:
- Dependencies:
- none
- Versions:
-
1.8.3 2020-Dec-05 1.8.2 2020-Nov-28 1.8.1 2020-May-05 1.8.0 2020-Apr-24 1.7.4 2020-Apr-20 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
343 downloads total
-
- Score:
- 0.4
- Short URL:
- antlr-d.dub.pm