peg 0.0.21 peg: ^0.0.21 copied to clipboard
PEG (Parsing expression grammar) parsers generator.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add peg
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
peg: ^0.0.21
Alternatively, your editor might support dart pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:peg/class_generator.dart';
import 'package:peg/expression_generators.dart';
import 'package:peg/expression_states.dart';
import 'package:peg/expression_visitors.dart';
import 'package:peg/expressions.dart';
import 'package:peg/frontend_analyzer.dart';
import 'package:peg/general_parser_class_generator.dart';
import 'package:peg/general_parser_generator.dart';
import 'package:peg/generators.dart';
import 'package:peg/grammar.dart';
import 'package:peg/grammar_analyzer.dart';
import 'package:peg/grammar_reporter.dart';
import 'package:peg/interpreter_parser_generator.dart';
import 'package:peg/production_rule.dart';
import 'package:peg/production_rule_generator.dart';
import 'package:peg/template_block_.dart';
import 'package:peg/trace.dart';
import 'package:peg/utils.dart';