peg 0.0.9 peg: ^0.0.9 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.9
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/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_reporter.dart';
import 'package:peg/instruction_compiler.dart';
import 'package:peg/instruction_decoder_generators.dart';
import 'package:peg/instruction_from_expression_transformer.dart';
import 'package:peg/instructions.dart';
import 'package:peg/interpreter_class_generator.dart';
import 'package:peg/interpreter_generator.dart';
import 'package:peg/parser_class_generator.dart';
import 'package:peg/parser_generator.dart';
import 'package:peg/production_rule.dart';
import 'package:peg/production_rule_generator.dart';
import 'package:peg/state_machine_generator.dart';
import 'package:peg/template_block_.dart';
import 'package:peg/trace.dart';
import 'package:peg/utils.dart';
import 'package:peg/visitors.dart';