@joe is on PowPing!

PowPing is a place where you can earn Bitcoin simply by socializing, for FREE.
Never tried Bitcoin? It's OK! Just come, socialize, and earn Bitcoin.
Check out joe's activities
Total Economy: 1.73 USD

Script Debugging and Evaluation in VSCode


Today I'm announcing the introduction of the Quick Evaluator and Debugger to the VSCode Bitcoin Script Extension. This is created in response to some complaints I saw in the Bitcoin Script PowPing group.

The Quick Evaluator will evaluate the script and output whether the script is:

  • TRUE
  • FALSE
  • or INVALID
this is the quick evaluator, note the result at the bottom.


The more sophisticated Debugger will show the result of the main and alt-stack after execution as well as any errors encountered during execution.

This is the debugger


If you find any suggestions, issues, or bugs I will be more than happy to address them if you report them. Either here, or on GitHub.

Thank you all for your support! I really appreciate it :)

VSCode Marketplace Link: https://marketplace.visualstudio.com/items?itemName=shade.bsl
Github Link: https://github.com/shade/vscode-bitcoinscript

P.S. The interpreter is built from @stephan's dartsv library, feel free to check it out for all your Bitcoin needs, it's very useful.

powered by powpress
link Tip
Share
tx
translate
libs tipped:
0.05 USD
1 year ago
unwriter tipped:
0.04 USD
1 year ago
ejfhp tipped:
0.46 USD
1 year ago
venezia tipped:
0.01 USD
1 year ago
venezia tipped:
0.06 USD
1 year ago
eatmybitcorn tipped:
0.44 USD
1 year ago
paidsockpuppet tipped:
0.04 USD
1 year ago
kapil tipped:
0.11 USD
1 year ago
jonathanaird tipped:
0.1 USD
1 year ago
hammerbrook tipped:
0.02 USD
1 year ago
santos tipped:
0.43 USD
1 year ago
arbusto tipped:
0.02 USD
1 year ago
marquee tipped:
0.01 USD
1 year ago
This is amazing. Good job.
joe replied:
Thank you :)
This is very cool. Out of interest do you know what would be involved porting the syntax highlighting over to CodeMirror?
joe replied:
I doubt it'd be too difficult. Based on a cursory look, defining a mode in CodeMirror is structured very similarly to defining a grammar in VSCode/Monaco. The grammar I created for this extension is in this JSON file: https://github.com/shade/vscode-bitcoinscript/blob/master/syntaxes/bitcoinscript.json
libs replied:
Cheers. Just knocked a rough attempt up. Seems to work (ish). I'll put this to use soon