OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #import('lang.dart', prefix: 'lang'); | 5 #import('lang.dart', prefix: 'lang'); |
6 #import('leg/frog_leg.dart', prefix: 'leg'); | 6 #import('../lib/compiler/implementation/frog_leg.dart', prefix: 'leg'); |
7 #import('minfrogc.dart', prefix: 'minfrogc'); | 7 #import('minfrogc.dart', prefix: 'minfrogc'); |
8 | 8 |
9 void main() { | 9 void main() { |
10 lang.legCompile = leg.compile; | 10 lang.legCompile = leg.compile; |
11 try { | 11 try { |
12 minfrogc.main(); | 12 minfrogc.main(); |
13 } catch (var exception, var trace) { | 13 } catch (var exception, var trace) { |
14 try { | 14 try { |
15 print('Internal error: $exception'); | 15 print('Internal error: $exception'); |
16 } catch (var ignored) { | 16 } catch (var ignored) { |
17 print('Internal error: error while printing exception'); | 17 print('Internal error: error while printing exception'); |
18 } | 18 } |
19 try { | 19 try { |
20 print(trace); | 20 print(trace); |
21 } finally { | 21 } finally { |
22 exit(253); | 22 exit(253); |
23 } | 23 } |
24 } | 24 } |
25 } | 25 } |
OLD | NEW |