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

Unified Diff: petitparser/lib/src/lisp/cons.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/json/parser.dart ('k') | petitparser/lib/src/lisp/environment.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: petitparser/lib/src/lisp/cons.dart
diff --git a/petitparser/lib/src/lisp/cons.dart b/petitparser/lib/src/lisp/cons.dart
deleted file mode 100644
index bb0463c8086c8e544b89bfb423e10c2ad539d6df..0000000000000000000000000000000000000000
--- a/petitparser/lib/src/lisp/cons.dart
+++ /dev/null
@@ -1,44 +0,0 @@
-part of lisp;
-
-/**
- * The basic data structure of LISP.
- */
-class Cons {
-
- /** The head of the cons. */
- dynamic head;
-
- /** The tail of the cons. */
- dynamic tail;
-
- /** Constructs a cons. */
- Cons(this.head, this.tail);
-
- @override
- bool operator ==(other) {
- return other is Cons && head == other.head && tail == other.tail;
- }
-
- @override
- int get hashCode => 31 * head.hashCode + tail.hashCode;
-
- @override
- String toString() {
- var buffer = new StringBuffer();
- buffer.write('(');
- var current = this;
- while (current is Cons) {
- buffer.write(current.head.toString());
- current = current.tail;
- if (current != null) {
- buffer.write(' ');
- }
- }
- if (current != null) {
- buffer.write('. ');
- buffer.write(current);
- }
- buffer.write(')');
- return buffer.toString();
- }
-}
« no previous file with comments | « petitparser/lib/src/json/parser.dart ('k') | petitparser/lib/src/lisp/environment.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698