Go to file
2022-09-26 09:43:23 +02:00
WaifuGrammar Initial commit 2022-09-26 09:43:23 +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