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

Side by Side Diff: pkg/dartino_compiler/lib/src/hub/sentence_parser.dart

Issue 1987673002: Initial Implementation of the vm-service protocol (Closed) Base URL: git@github.com:dartino/sdk.git@master
Patch Set: Keep track of terminated state Created 4 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dartino 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.md file. 3 // BSD-style license that can be found in the LICENSE.md file.
4 4
5 library dartino_compiler.hub.sentence_parser; 5 library dartino_compiler.hub.sentence_parser;
6 6
7 import 'dart:convert' show 7 import 'dart:convert' show
8 JSON; 8 JSON;
9 9
10 import '../verbs/actions.dart' show 10 import '../verbs/actions.dart' show
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 254
255 case "devices": 255 case "devices":
256 return makeTarget(TargetKind.DEVICES); 256 return makeTarget(TargetKind.DEVICES);
257 257
258 case "apply": 258 case "apply":
259 return makeTarget(TargetKind.APPLY); 259 return makeTarget(TargetKind.APPLY);
260 260
261 case "analytics": 261 case "analytics":
262 return makeTarget(TargetKind.ANALYTICS); 262 return makeTarget(TargetKind.ANALYTICS);
263 263
264 case "serve":
265 return makeNamedTarget(TargetKind.SERVE);
266
264 default: 267 default:
265 return new ErrorTarget(DiagnosticKind.expectedTargetButGot, word); 268 return new ErrorTarget(DiagnosticKind.expectedTargetButGot, word);
266 } 269 }
267 } 270 }
268 271
269 Target parseTargetOpt() { 272 Target parseTargetOpt() {
270 Target target = internalParseTarget(); 273 Target target = internalParseTarget();
271 return target is ErrorTarget ? null : target; 274 return target is ErrorTarget ? null : target;
272 } 275 }
273 276
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 METHOD, 419 METHOD,
417 METHODS, 420 METHODS,
418 PRINT, 421 PRINT,
419 PRINT_ALL, 422 PRINT_ALL,
420 PROJECT, 423 PROJECT,
421 RESTART, 424 RESTART,
422 RUN_TO_MAIN, 425 RUN_TO_MAIN,
423 SESSION, 426 SESSION,
424 SESSIONS, 427 SESSIONS,
425 SETTINGS, 428 SETTINGS,
429 SERVE,
426 STEP, 430 STEP,
427 STEP_BYTECODE, 431 STEP_BYTECODE,
428 STEP_OVER, 432 STEP_OVER,
429 STEP_OVER_BYTECODE, 433 STEP_OVER_BYTECODE,
430 TCP_SOCKET, 434 TCP_SOCKET,
431 TTY, 435 TTY,
432 TOGGLE, 436 TOGGLE,
433 } 437 }
434 438
435 const List<TargetKind> connectionTargets = 439 const List<TargetKind> connectionTargets =
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 this.verb, 495 this.verb,
492 this.prepositions, 496 this.prepositions,
493 this.targets, 497 this.targets,
494 this.trailing, 498 this.trailing,
495 this.version, 499 this.version,
496 this.currentDirectory, 500 this.currentDirectory,
497 this.interactive); 501 this.interactive);
498 502
499 String toString() => "Sentence($verb, $prepositions, $targets)"; 503 String toString() => "Sentence($verb, $prepositions, $targets)";
500 } 504 }
OLDNEW
« no previous file with comments | « pkg/dartino_compiler/lib/src/debug_service_protocol.dart ('k') | pkg/dartino_compiler/lib/src/verbs/debug_verb.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698