Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions .babelrc

This file was deleted.

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
build
index.js
index.html
server.js
node_modules
*.tgz
*.7z
test-perf.mjs
7 changes: 5 additions & 2 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ src
build/tsconfig.tsbuildinfo
build/deps
build/out
*.map
bundle.js.map
bundle.cjs.map
bundle.min.js.map
bundle.js
bundle.cjs
bundle.mjs
bundle.min.js
samples
index.js
Expand All @@ -17,5 +18,7 @@ syntax.md
.babelrc
package-lock.json
*.tgz
*.7z
node_modules
tsconfig.json
rollup.config.js
2 changes: 1 addition & 1 deletion Licence
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020 MadProbe#7435
Copyright (c) 2020-present MadProbe#7435

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
58 changes: 58 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,61 @@
# Version 0.3.0
## New Features

### Word aliases for binary ariphmetic
```ts
not true;
not 0 + 1;
true and false;
false or true;
```
transforms to:
```ts
!true;
!(0 + 1);
true && false;
false || true;
```

### Symbol constructor property shortcuts
```ts
iterator = [0, 1, 2, 3, 4][@@iterator]();
while (not (next = iterator.next()).done) {
__external_var("console").log(next.value);
}

/**
* Prints to console:
* 0
* 1
* 2
* 3
* 4
*/
```
transforms to:
```js
var $iterator, $next;
$iterator = [0, 1, 2, 3, 4][Symbol.iterator]();
while (!(($next = $iterator.next())).done) {
console.log($next.value);
};
```

### include { symbol } from "module.tsk";
Same as normal `include "module.tsk";`, except only some symbols from module are exported.
NOTE: WHOLE module is evaluated and NO functionality is stripped and ALL symbols (variables and functions) in module available to exported symbols!
Exmaples:
```ts
include { symbol, function } from "module.tsk";
include { symbol as newSymbolName } from "module.tsk";
```

### Import expressions
```ts
// Import expression are same as in js
fs = await import("fs");
```

# Version 0.2.0
## Bug fixes
Removed Extra newline emitted on code block and try statment.
Expand Down
Loading