https://github.com/ephellon/paramour
The perfect rendezvous with JavaScript and Python
https://github.com/ephellon/paramour
Last synced: 7 months ago
JSON representation
The perfect rendezvous with JavaScript and Python
- Host: GitHub
- URL: https://github.com/ephellon/paramour
- Owner: Ephellon
- Created: 2016-08-22T17:02:09.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-09-16T00:49:12.000Z (almost 9 years ago)
- Last Synced: 2024-12-29T08:42:16.981Z (over 1 year ago)
- Language: JavaScript
- Size: 515 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Paramour
## _"The perfect rendezvous with JavaScript and Python"_
----
# How to
## HTML
```html
# extra Paramour scripts can go here too
```
## JavaScript
```js
var input =
`
# Paramour
# $doc -> document
$doc.body.onload = () =>
log "This is Paramour!";
var(catcher, item_one, item_two, item_three) = .{123, "abc", /def/g};
log(String message, ... extra) {
console.log(message, extra)
}
log(catcher, item_one, item_three)
`;
var output = Paramour(input);
```
## Windows Command Line
```bat
paramour file1.par file2.par
:: or
paramour
```
## Java
```java
// something like...
import paramour.Paramour
private static Paramour par = new Paramour();
public static void main(String args[]) {
// ...
// gather the file names
for(int x = 0; x < files.length; x++)
par.eval(files[x]);
// ...
}
```
----
# Awesome Features of Paramour
### Functions
```paramour
function_name(parameter) {
# ...
}
# Or
### Special Types
* - Any
... - Spread
- HTML Element
###
function_name(Type parameter) {
# ...
}
```
### Classes
```python
class_name {
init::(arguments...) {
# constructor
# ...
}
}
super_name.class_name {
init::{
# optional arguments
# ...
}
}
```
### Tuples
```javascript
var variable_name = .{
123
"abc"
/def/g
};
```
# And much more!
see [this](https://Ephellon.github.io/Paramour/)