Browse files

- cleaned up entry point

  • Loading branch information...
1 parent f9f36f3 commit 3f892a52b11a9eaa3259d4529c33a267375b2699 @renggli renggli committed Jul 22, 2012
Showing with 2 additions and 6 deletions.
  1. +2 −6 grammar/lisp/lisp.dart
View
8 grammar/lisp/lisp.dart
@@ -8,14 +8,15 @@
#import('../../lib/petitparser.dart');
#import('lisplib.dart');
-void mainWithOptions(Options options) {
+void main() {
// default options
bool standardLibrary = true;
bool interactiveMode = false;
List files = new List();
// parse arguments
+ var options = new Options();
for (var option in options.arguments) {
if (option.startsWith('-') && files.isEmpty()) {
if (option == '-n') {
@@ -61,9 +62,4 @@ void mainWithOptions(Options options) {
if (interactiveMode || files.isEmpty()) {
evalInteractive(parser, environment, stdin, stdout);
}
-
-}
-
-void main() {
- mainWithOptions(new Options());
}

0 comments on commit 3f892a5

Please sign in to comment.