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

Unified Diff: packages/petitparser/lib/src/lisp/parser.dart

Issue 2989763002: Update charted to 0.4.8 and roll (Closed)
Patch Set: Removed Cutch from list of reviewers Created 3 years, 5 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
« no previous file with comments | « packages/petitparser/lib/src/lisp/natives.dart ('k') | packages/petitparser/lib/src/lisp/standard.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/petitparser/lib/src/lisp/parser.dart
diff --git a/packages/petitparser/lib/src/lisp/parser.dart b/packages/petitparser/lib/src/lisp/parser.dart
deleted file mode 100644
index a14c2913196306f212fe74e69003317d9c3c994b..0000000000000000000000000000000000000000
--- a/packages/petitparser/lib/src/lisp/parser.dart
+++ /dev/null
@@ -1,33 +0,0 @@
-part of petitparser.lisp;
-
-/// LISP parser.
-class LispParser extends GrammarParser {
- LispParser() : super(new LispParserDefinition());
-}
-
-/// LISP parser definition.
-class LispParserDefinition extends LispGrammarDefinition {
-
- list() => super.list().map((each) => each[1]);
-
- cell() => super.cell().map((each) => new Cons(each[0], each[1]));
- empty() => super.empty().map((each) => null);
-
- string() => super.string().map((each) => new String.fromCharCodes(each[1]));
- characterEscape() => super.characterEscape().map((each) => each[1].codeUnitAt(0));
- characterRaw() => super.characterRaw().map((each) => each.codeUnitAt(0));
-
- symbol() => super.symbol().map((each) => new Name(each));
- number() => super.number().map((each) {
- var floating = double.parse(each);
- var integral = floating.toInt();
- if (floating == integral && each.indexOf('.') == -1) {
- return integral;
- } else {
- return floating;
- }
- });
-
- quote() => super.quote().map((each) => new Cons(Natives._quote, each[1]));
-
-}
« no previous file with comments | « packages/petitparser/lib/src/lisp/natives.dart ('k') | packages/petitparser/lib/src/lisp/standard.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698