https://github.com/bradleywood/tldemo
Demo programs for my JVM language
https://github.com/bradleywood/tldemo
Last synced: 2 months ago
JSON representation
Demo programs for my JVM language
- Host: GitHub
- URL: https://github.com/bradleywood/tldemo
- Owner: BradleyWood
- Created: 2017-10-04T21:59:49.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-06-24T02:10:19.000Z (almost 7 years ago)
- Last Synced: 2025-03-02T12:52:02.698Z (3 months ago)
- Size: 47.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
### TLDemo
This repository contains a few demo programs for my JVM language.
#### MathDemo
The math demo serves to display the simplicity of mathematical functions.
```java
f(x) = x**2 + x + 1;g(x) = 4 * x + 50;
```#### Interoperability
A simple example of java interop.
```java
import javax.swing.JOptionPane;fun main() {
var input = JOptionPane.showInputDialog("What is your name?");
JOptionPane.showMessageDialog(null, "Hello, " + input);
}
```#### Go routines
A go routine can be created by using the ```go``` keyword followed by
function invocation.```java
go aFunction();
```