Go to file
The other zerg fed9cc4a29 Updated grammar to support single and multiline comments
- Fixed bugged type parsing
- Added optional function return type
- Comments don't require proper indentation right now, but should they?
2022-09-26 12:31:22 +02:00
WaifuGrammar Updated grammar to support single and multiline comments 2022-09-26 12:31:22 +02:00
.gitignore Initial commit 2022-09-26 09:43:23 +02:00
README.md Initial commit 2022-09-26 09:43:23 +02:00
WaifuGrammar.sln Initial commit 2022-09-26 09:43:23 +02:00

Dotnet

  • install dotnet 6
  • install antlr
  • cd WaifuGrammar
  • antlr4 -Dlanguage=CSharp
    -o WaifuGrammar/grammar_out/waifu
    -package waifu -listener -visitor
    -lib WaifuGrammar/grammar
    WaifuGrammar/grammar/Waifu2.g4
  • Develop in grammar/Waifu2.g4 and Program.cs

Notes

  • Final implementation in rust? Althought rantlr4 doesn't have rust support. So we will have to write parser and lexer from sctach