salam means hello in Persian
monaco editor + antlr + react + listener
- install nodejs
- copy the project in a folder
- run these commands in that folder
- npx create-react-app salam -tsx --typescript
- go to created folder
- //Adding TypeScript to existing create-react-app project------> npm install --save typescript @types/node @types/react @types/react-dom @types/jest
- npm install @monaco-editor/react
- for webpack5---------> npm install assert util
- add 1 file:---> SalamGrammar.g4
- npm add antlr4ts
- npm add -D antlr4ts-cli
- change package.json--------> add to scripts: "antlr4ts": "antlr4ts ./SalamGrammar.g4 -o ./src/ANTLR"
- npm run antlr4ts
- add 3 files: SalamErrorListener, SalamChichiListener, parser
- change App.js