gcsim icon indicating copy to clipboard operation
gcsim copied to clipboard

rewrite code editor for web

Open k0l11 opened this issue 1 year ago • 4 comments

In order to have a clean solution for:

  • syntax highlighting
  • code formatting
  • autocompletion
  • error detection
  • ...

we should look into:

  • defining gcsl as a grammar using ANTLR to generate a parser in TS/Golang
  • this parser can then be used in combination with something like Monaco to implement the code editor
  • example tutorial: https://betterprogramming.pub/create-a-custom-web-editor-using-typescript-react-antlr-and-monaco-editor-bcfc7554e446

k0l11 avatar Jul 09 '23 00:07 k0l11