peg 0.0.6 peg: ^0.0.6 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.6
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/expression_generators.dart';
import 'package:peg/expressions.dart';
import 'package:peg/frontend_analyzer.dart';
import 'package:peg/generator.dart';
import 'package:peg/grammar.dart';
import 'package:peg/grammar_analyzer.dart';
import 'package:peg/grammar_generator.dart';
import 'package:peg/grammar_reporter.dart';
import 'package:peg/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/utils.dart';
import 'package:peg/visitors.dart';