keep-starknet-strange / shinigami

Bitcoin Script VM in Cairo
https://shinigamibtc.dev
MIT License
57 stars 56 forks source link

[feat] Monaco Bitcoin Script langauage support #178

Closed b-j-roberts closed 1 month ago

b-j-roberts commented 1 month ago

Our frontend script editor uses the Monaco library to provide an ide for inputting bitcoin script. To make development easier, we should add language support for Bitcoin script to allow auto-completion, recommendations, and maybe error support to the frontend editor.

References

https://www.npmjs.com/package/monaco-editor https://github.com/okhaimie-dev/shinigami/blob/okhai/rot/app/src/utils/bitcoin-script-lang.ts

b-j-roberts commented 1 month ago

@temhithorphe thank you for working on this!

TEMHITHORPHE commented 1 month ago

@TEMHITHORPHE thank you for working on this!

My pleasure mahn!😃 I'm learning all sorts of things about tokenizers and lexical analyzers!, hopefully will have a PR soon!! ⚡

b-j-roberts commented 1 month ago

Hey @TEMHITHORPHE , any updates on getting a PR up for this?

b-j-roberts commented 1 month ago

Added bitcoin language support here : https://github.com/keep-starknet-strange/shinigami/commit/045f7f71918361b03d14ca8826b63b1ac5a0963e

( Just a first iteration )