commit 430fcd26bfbcef4d780f74eca7d820956b24670f Author: jorenchik Date: Sat Aug 3 18:40:40 2024 +0300 Initial commit File structure and dummy compiler module. diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ae4c311 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +input.mdem diff --git a/input.example.mdem b/input.example.mdem new file mode 100644 index 0000000..df60e2f --- /dev/null +++ b/input.example.mdem @@ -0,0 +1,19 @@ +- [cap_latvia] What is the capital of Latvia? > + - Riga + +- [baltic_capitals] Which countries are Baltic countries? > + + Latvia + - Germany + - Chechia + + Estonia + - Spain + +|> MySection + +- [cap_est] What is the capital the of Estonia? > + - Tallin + +<| + +- [cap_lith] What is the capital the of Lithuania? > + - Vilnius diff --git a/src/app/.gitkeep b/src/app/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/src/compiler/compiler.go b/src/compiler/compiler.go new file mode 100644 index 0000000..35c7da7 --- /dev/null +++ b/src/compiler/compiler.go @@ -0,0 +1,7 @@ +package main + +import "fmt" + +func main() { + fmt.Println("Hello from compiler!") +} diff --git a/src/compiler/go.mod b/src/compiler/go.mod new file mode 100644 index 0000000..58dc732 --- /dev/null +++ b/src/compiler/go.mod @@ -0,0 +1,3 @@ +module github.com/jorenchik/mdemory/src/compiler + +go 1.22.5