Latte-lang 0.0.3 ALPHA
Pre-release
Pre-release
Maven Support
compiler and libraries
<dependency>
<groupId>org.latte-lang</groupId>
<artifactId>latte-build</artifactId>
<version>0.0.3-ALPHA</version>
</dependency>
maven plugin
<plugin>
<groupId>org.latte-lang</groupId>
<artifactId>latte-maven-plugin</artifactId>
<version>0.0.3-ALPHA</version>
<executions>
<execution>
<id>compile</id>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
<execution>
<id>test-compile</id>
<phase>test-compile</phase>
<goals>
<goal>test-compile</goal>
</goals>
</execution>
</executions>
</plugin>
Regular Expression
pattern = //\d+//
The regular expression is a java.util.regex.Pattern
object.
Dynamic Method Invocation
define a method and invoke any method on the type/object.
static
call($this:Object, methodName:String, primitives:[]bool, arguments:[]Object)
...
- $this - the object to invoke from. or null if invoke static
- methodName - the method's name
- primitives - whether each argument is primitive
- arguments - the arguments
Calling Functional Object
func = (a, b)->a + b
res = func()
call a functional object just like calling a method.