legacy-svn-scala/tools
extempore 568b5f8877 Two new command line programs in ~/tools: scmp and tokens.
1) scmp: will need a bit more fleshing out to be super useful, but
here is what you can do right now:

  // This means run the given command line first with the options
  // given to p1 and then without, and show the diff in output.
  % tools/scmp --p1 '-no-specialization -nowarn' scalac -Ydebug src/library/scala/Function1.scala

Upcoming features will involve seeing diffs of such things as the
pickled signatures of generated files and the javap disassembly.

2) tokens: tokenizes all the scala files found under any given paths
and prints one token per line.

Example: the five most frequently used tokens under scala/util.

  % tools/tokens src/library/scala/util |sort | uniq -c | sort -r | head -5
   598 ')'
   598 '('
   347 ;
   294 '='
   278 ,

Good to see those parens are balanced.

Example: number of appearances of an identifier called x:

  % tools/tokens src/library/scala/util | grep ^x$ | wc
      137

Way to go, x.  Review by community.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21644 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-04-21 17:06:59 +00:00
..
abspath Some new tools for the tools directory. Everything in this commit 2010-02-15 20:00:36 +00:00
cpof Some new tools for the tools directory. Everything in this commit 2010-02-15 20:00:36 +00:00
diffPickled Some new tools for the tools directory. Everything in this commit 2010-02-15 20:00:36 +00:00
git-get-rev Renamed new bin directory to "tools" to avoid conflict with Eclipse incremental build output directory. 2010-01-20 09:12:10 +00:00
packcp Some new tools for the tools directory. Everything in this commit 2010-02-15 20:00:36 +00:00
pathResolver More work on classpaths. This commit also unbreaks fsc, for 2010-02-11 15:10:45 +00:00
quickcp A variety of changes to partest made in a quest to get it to 2010-02-17 21:26:02 +00:00
scalawhich Rewrote my own submitted code of a year ago from trac and added 2010-02-15 21:44:28 +00:00
scmp Two new command line programs in ~/tools: scmp and tokens. 2010-04-21 17:06:59 +00:00
showPickled Added a --bare option to ShowPickled so I can diff signatures without 2010-02-25 22:09:37 +00:00
starrcp Some new tools for the tools directory. Everything in this commit 2010-02-15 20:00:36 +00:00
strapcp A variety of changes to partest made in a quest to get it to 2010-02-17 21:26:02 +00:00
tokens Two new command line programs in ~/tools: scmp and tokens. 2010-04-21 17:06:59 +00:00
truncate Some deprecation patrol and minor cleanups. No review. 2010-02-22 00:16:03 +00:00