antlr4
4.13.2, released 2 years ago by lingyu.li
Dart runtime libraries for ANTLR 4 parser generator.
What it does
Provides the required runtime library support for parsers generated by ANTLR 4 in Dart. Enables applications to parse structured text and data using ANTLR grammars.
AI-written summary of version 4.13.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are using ANTLR 4 to generate a parser in Dart
- You need to process complex custom grammars or domain-specific languages
Skip it when
- You are parsing simple formats like JSON or XML where standard libraries suffice
- You do not plan to use ANTLR code generation tools
Strengths
- Brings powerful ANTLR 4 parsing capabilities to Dart
- Supports multiple platforms including Android, iOS, web, and desktop
Weaknesses
- Requires external ANTLR 4 tooling to generate the parser code
- Limited documentation specific to Dart within the package README
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
Add the dependency to pubspec.yaml and follow ANTLR documentation to generate Dart parser files.
import 'package:antlr4/antlr4.dart';Alternatives
Packages that do the same job and could replace antlr4.
- io
Utilities for the Dart VM Runtime including ANSI colors, file copying, and exit code values.
88Compare - worker_bee
Cross-platform isolated worker runtime for Dart Web, VM, and Flutter
82Compare - wasd
Pure Dart WebAssembly runtime for executing Wasm modules, components, and WASI.
73Compare - jsf
High-performance JavaScript engine plugin for Flutter with QuickJS.
70Compare
Works with
Packages commonly used together with antlr4: ones it builds on, ones built on it, and its own family.