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

Unified Diff: frog/scripts/corejs_gen.py

Issue 10548047: Remove frog from the repository. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Move test and update apidoc.gyp. Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « frog/scripts/codegen.py ('k') | frog/scripts/from_inputs_to_outputs.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/scripts/corejs_gen.py
diff --git a/frog/scripts/corejs_gen.py b/frog/scripts/corejs_gen.py
deleted file mode 100644
index b13137b57c50b25fbcd13f20e5be3f43dec8e248..0000000000000000000000000000000000000000
--- a/frog/scripts/corejs_gen.py
+++ /dev/null
@@ -1,22 +0,0 @@
-# Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
-# for details. All rights reserved. Use of this source code is governed by a
-# BSD-style license that can be found in the LICENSE file.
-from token_info import tokens, keywords
-from codegen import CodeWriter
-
-EXCLUDES = ['$add']
-
-def main():
- '''Generates the TokenKind class into token_kind.g.dart.'''
- cw = CodeWriter(__file__)
- for tok in tokens:
- if tok.methodName is not None and tok.methodName not in EXCLUDES:
- dname = repr(tok.methodName).replace('$', '\\$')
- cw.enterBlock('function %s(x, y) {' % tok.methodName)
- cw.writeln("return (typeof(x) == 'number' && typeof(y) == 'number')")
- cw.writeln(' ? x %s y : x.%s(y);' % (tok.text, tok.methodName))
- cw.exitBlock('}')
-
- cw.writeToFile('tests/core.g.js')
-
-if __name__ == '__main__': main()
« no previous file with comments | « frog/scripts/codegen.py ('k') | frog/scripts/from_inputs_to_outputs.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698