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

Unified Diff: petitparser/lib/src/lisp/parser.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
« no previous file with comments | « petitparser/lib/src/lisp/natives.dart ('k') | petitparser/lib/src/lisp/standard.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: petitparser/lib/src/lisp/parser.dart
diff --git a/petitparser/lib/src/lisp/parser.dart b/petitparser/lib/src/lisp/parser.dart
deleted file mode 100644
index aa00c180b90377a20e71cffe0450cc5177a687f0..0000000000000000000000000000000000000000
--- a/petitparser/lib/src/lisp/parser.dart
+++ /dev/null
@@ -1,37 +0,0 @@
-part of 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 | « petitparser/lib/src/lisp/natives.dart ('k') | petitparser/lib/src/lisp/standard.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698