Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1211)

Unified Diff: packages/petitparser/lib/src/petitparser/repeaters.dart

Issue 1400473008: Roll Observatory packages and add a roll script (Closed) Base URL: git@github.com:dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: packages/petitparser/lib/src/petitparser/repeaters.dart
diff --git a/petitparser/lib/src/core/repeaters.dart b/packages/petitparser/lib/src/petitparser/repeaters.dart
similarity index 81%
rename from petitparser/lib/src/core/repeaters.dart
rename to packages/petitparser/lib/src/petitparser/repeaters.dart
index 79c8cd1b81801df77f5754da592d195e05a6a564..0bb144e94247e936545c446e9c4982521cbe4ced 100644
--- a/petitparser/lib/src/core/repeaters.dart
+++ b/packages/petitparser/lib/src/petitparser/repeaters.dart
@@ -1,14 +1,10 @@
part of petitparser;
-/**
- * An [int] used to mark an unbounded maximum repetition.
- */
+/// An [int] used to mark an unbounded maximum repetition.
const int unbounded = -1;
-/**
- * An abstract parser that repeatedly parses between 'min' and 'max' instances of
- * its delegate.
- */
+/// An abstract parser that repeatedly parses between 'min' and 'max' instances of
+/// its delegate.
abstract class RepeatingParser extends DelegateParser {
final int _min;
final int _max;
@@ -33,10 +29,8 @@ abstract class RepeatingParser extends DelegateParser {
}
}
-/**
- * A greedy parser that repeatedly parses between 'min' and 'max' instances of
- * its delegate.
- */
+/// A greedy parser that repeatedly parses between 'min' and 'max' instances of
+/// its delegate.
class PossessiveRepeatingParser extends RepeatingParser {
PossessiveRepeatingParser(Parser parser, int min, int max)
: super(parser, min, max);
@@ -68,12 +62,10 @@ class PossessiveRepeatingParser extends RepeatingParser {
Parser copy() => new PossessiveRepeatingParser(_delegate, _min, _max);
}
-/**
- * An abstract parser that repeatedly parses between 'min' and 'max' instances of
- * its delegate and that requires the input to be completed with a specified parser
- * 'limit'. Subclasses provide repeating behavior as typically seen in regular
- * expression implementations (non-blind).
- */
+/// An abstract parser that repeatedly parses between 'min' and 'max' instances of
+/// its delegate and that requires the input to be completed with a specified parser
+/// 'limit'. Subclasses provide repeating behavior as typically seen in regular
+/// expression implementations (non-blind).
abstract class LimitedRepeatingParser extends RepeatingParser {
Parser _limit;
@@ -92,11 +84,9 @@ abstract class LimitedRepeatingParser extends RepeatingParser {
}
}
-/**
- * A greedy repeating parser, commonly seen in regular expression implementations. It
- * aggressively consumes as much input as possible and then backtracks to meet the
- * 'limit' condition.
- */
+/// A greedy repeating parser, commonly seen in regular expression implementations. It
+/// aggressively consumes as much input as possible and then backtracks to meet the
+/// 'limit' condition.
class GreedyRepeatingParser extends LimitedRepeatingParser {
GreedyRepeatingParser(Parser parser, Parser limit, int min, int max)
: super(parser, limit, min, max);
@@ -142,10 +132,8 @@ class GreedyRepeatingParser extends LimitedRepeatingParser {
Parser copy() => new GreedyRepeatingParser(_delegate, _limit, _min, _max);
}
-/**
- * A lazy repeating parser, commonly seen in regular expression implementations. It
- * limits its consumption to meet the 'limit' condition as early as possible.
- */
+/// A lazy repeating parser, commonly seen in regular expression implementations. It
+/// limits its consumption to meet the 'limit' condition as early as possible.
class LazyRepeatingParser extends LimitedRepeatingParser {
LazyRepeatingParser(Parser parser, Parser limit, int min, int max)
: super(parser, limit, min, max);
« no previous file with comments | « packages/petitparser/lib/src/petitparser/predicates.dart ('k') | packages/petitparser/lib/src/petitparser/token.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698