Skip to content

bathaeian/salam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

salam

salam means hello in Persian
monaco editor + antlr + react + listener

  1. install nodejs
  2. copy the project in a folder
  3. run these commands in that folder
  4. npx create-react-app salam -tsx --typescript
  5. go to created folder
  6. //Adding TypeScript to existing create-react-app project------> npm install --save typescript @types/node @types/react @types/react-dom @types/jest
  7. npm install @monaco-editor/react
  8. for webpack5---------> npm install assert util
  9. add 1 file:---> SalamGrammar.g4
  10. npm add antlr4ts
  11. npm add -D antlr4ts-cli
  12. change package.json--------> add to scripts: "antlr4ts": "antlr4ts ./SalamGrammar.g4 -o ./src/ANTLR"
  13. npm run antlr4ts
  14. add 3 files: SalamErrorListener, SalamChichiListener, parser
  15. change App.js