[readme]
This commit is contained in:
12
README.md
12
README.md
@@ -14,19 +14,23 @@ A simple language server based VSCode Extension for the (Branflakes?) (BrainFuck
|
|||||||
### Execution
|
### Execution
|
||||||
|
|
||||||
Use the BF execute task to execute the code.
|
Use the BF execute task to execute the code.
|
||||||
Because JS is single threaded+.
|
Either run the "current file" task, or create a customized task with the required file.
|
||||||
If the program requires input, it will be requested as a prompt.
|
I/O is done on the created terminal window.
|
||||||
|
|
||||||
TODO: Implement a timeout.
|
|
||||||
|
There is also an older command to run the code, where output is shown as a status message. Here, if the program requires input, it will be requested as a prompt.
|
||||||
|
|
||||||
### Changelog
|
### Changelog
|
||||||
|
|
||||||
#### 0.3.0
|
#### 0.3.0
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
- Added a task for execution
|
- Added a task for execution
|
||||||
- Press Control C to halt it while its waiting for input
|
- Press Control C to halt it while its waiting for input
|
||||||
- Close task to abort execution
|
- Close task to abort execution
|
||||||
|
- Detail: The program will halt between loop iterations.
|
||||||
|
- Migrated the run command to `bf.execute.old`
|
||||||
|
|
||||||
#### 0.2.1
|
#### 0.2.1
|
||||||
|
|
||||||
|
BIN
assets/command.gif
Normal file
BIN
assets/command.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 540 KiB |
@@ -71,6 +71,7 @@ class CustomBuildTaskTerminal implements vscode.Pseudoterminal {
|
|||||||
const newData = [...data].map(e => e.charCodeAt(0));
|
const newData = [...data].map(e => e.charCodeAt(0));
|
||||||
console.log('new input', newData);
|
console.log('new input', newData);
|
||||||
this.inputQueue.push(...newData);
|
this.inputQueue.push(...newData);
|
||||||
|
this.writeEmitter.fire(replaceLFWithCRLF(data));
|
||||||
this.readEmitter.fire();
|
this.readEmitter.fire();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -112,7 +113,7 @@ class CustomBuildTaskTerminal implements vscode.Pseudoterminal {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private async doExecution(): Promise<void> {
|
private async doExecution(): Promise<void> {
|
||||||
this.writeEmitter.fire('[bf] Requested execution of ' + this.fileName + '\r\n');
|
this.writeEmitter.fire('[bf] Requested execution of ' + (this.fileName ?? 'active file') + '\r\n');
|
||||||
const cus = this;
|
const cus = this;
|
||||||
try {
|
try {
|
||||||
|
|
||||||
|
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "bfc-server",
|
"name": "bfc-server",
|
||||||
"version": "0.3.0",
|
"version": "0.3.1",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "bfc-server",
|
"name": "bfc-server",
|
||||||
"version": "0.3.0",
|
"version": "0.3.1",
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
"author": "Atreya Bain",
|
"author": "Atreya Bain",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"publisher": "atreyabain",
|
"publisher": "atreyabain",
|
||||||
"version": "0.3.0",
|
"version": "0.3.1",
|
||||||
"icon": "assets/128.png",
|
"icon": "assets/128.png",
|
||||||
"categories": ["Programming Languages","Linters"],
|
"categories": ["Programming Languages","Linters"],
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
Reference in New Issue
Block a user