# Latte-lang **Repository Path**: mirrors_jfinal/Latte-lang ## Basic Information - **Project Name**: Latte-lang - **Description**: A JVM Language. 100% interoperable with Java™ - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-25 - **Last Updated**: 2025-12-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #Latte-Lang ![](http://latte.cassite.net/images/highlight.png) Latte is a JVM language. It's highly readable and extensible. Click [here](http://latte.cassite.net/#theVideo) to watch a video about Latte. [Wiki Pages](https://github.com/wkgcass/Latte-lang/wiki) [Latte WebSite](http://latte.cassite.net/) `Atom` Extensions : [atom-latte-lang-highlighting](https://atom.io/packages/Atom-Latte-lang-Highlighting) [atom-latte-lang-ide](https://atom.io/packages/atom-latte-lang-ide) Latte supports * Operator Binding * DSL * Data Class * Pre-Processing define/undef * Inner Method * Lambda * JSON Literal * Read Eval Print Loop * many other features `Latte` is based on java 8. It's compiled to JVM byte code, and can collaborate with any java library. 最下面有中文 :) #How to build `JRE 8` is the only thing required. The project is managed by `Maven`, you can use `Maven 3` to build automatically clone the repository, and run mvn clean package You will get a runnable jar (`repl.jar`) and two shell scripts (`latte` and `latte.bat`). The shell scripts can help you run the `repl`. run: ./latte then the [REPL](https://github.com/wkgcass/Latte-lang/blob/master/src/main/java/lt/repl/REPL.java) starts Welcome to Latte lang Type in expressions and double Enter to have them evaluated. Type :help for more information. for syntax help, please visit https://github.com/wkgcass/Latte-lang/ >1+1 | res0 : java.lang.Integer = 2 > #Compile `lt` Files There are two ways of compiling `lt` files * use program command latte -c the detailed commands and options can be found in latte -help or: * start the `REPL` interpreter, and construct a `Compiler` compiler = Compiler() use `>>` operator to specify output directory compiler >> '...' // or compiler >> File('...') use `+` operator to add class-path compiler + '...' use `compile MAP` to specify source codes to be compiled and start compiling compiler compile {'fileName':FileObject} usually `filesInDirectory('...')` is used, e.g. compiler compile filesInDirectory('...') these method invocations can be chained up Compiler() + '...cp...' >> '...output...' compile filesInDirectory('...source...') You can write a `script` to configure the settings. Check [build.lts](https://github.com/wkgcass/Latte-lang/blob/master/src/main/resources/build.lts) for more info. #Scripts * you can run a script directly latte -s script-location script-arguments... or: * start the `REPL` interpreter type `:script