1. Tim Vernum
  2. syntactic

Commits

Tim Vernum  committed 9ac2421

Edited online

  • Participants
  • Parent commits ec94f38
  • Branches default

Comments (0)

Files changed (1)

File ConvertingJava8To7.md

View file
 e.g.
 
     Runnable runnable = () -> { System.out.println("Running!"); } ;
+
     Callable<String> callable = () -> "abc" ;
+
     FileFilter filter = (file) -> file.getName().endsWith(".xml") ;
+
     javax.swing.event.ChangeListener listener = event -> { System.err.println("Event:" + event); };
+
     Comparator<? super String> cmp = (CharSequence a, CharSequence b) -> { 
         Integer l1 = a.length(), l2 = b.length();
         return l1.compareTo(l2);
         
 As you can see from the examples above the following are supported:
 
-* _Block_ based lambdas _(runnable, listener and cmp)_
-* _Expression_ based lambdas _(callable and filter)_
-* Zero-argument lambdas _(runnable and callable)_
-* The parenthesis-less syntax for single-argument lambdas _(listener)_
-* Implied argument types _(filter, listener)_
-* Generics _(callable and cmp)_
-* Generics with wildcards _(cmp)_
+* _Block_ based lambdas _(`runnable`, `listener` and `cmp`)_
+* _Expression_ based lambdas _(`callable` and `filter`)_
+* Zero-argument lambdas _(`runnable` and `callable`)_
+* The parenthesis-less syntax for single-argument lambdas _(`listener`)_
+* Implied argument types _(`filter`, `listener`)_
+* Generics _(`callable` and `cmp`)_
+* Generics with wildcards _(`cmp`)_
 
 
 Not Yet Supported Features
 The arguments are a list of filenames to convert.
 
 It requires two jar files on the classpath `syntactic-parser.jar` and `syntactic-convert.jar`  
-_(See [Download]_ for more info)
+_(See [the download page](Download) for more info)_
 
 e.g.
+
     java -cp syntactic-parser.jar:syntactic-convert.jar src/com/example/MyClass.java
 
 The converted source is printed to standard output _(System.out)_
 
-### Limitiations
+### Limitations
 
 The tool currently has these limitations.  
 We intend to fix these in time.
 
 * All files are printed to standard out, which isn't very helpful if you're trying to convert multiple files at once
-* All dependant classes (including the [functional interfaces](http://www.lambdafaq.org/what-is-a-functional-interface/) must be either
-1. Available on the classpath
+* All dependant classes (including the [functional interfaces](http://www.lambdafaq.org/what-is-a-functional-interface/)) must be either  
+1. Available on the classpath  
 2. Included in the same compilation unit (file)