An open API service indexing awesome lists of open source software.

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

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/)