From 430fcd26bfbcef4d780f74eca7d820956b24670f Mon Sep 17 00:00:00 2001 From: jorenchik Date: Sat, 3 Aug 2024 18:40:40 +0300 Subject: [PATCH] Initial commit File structure and dummy compiler module. --- .gitignore | 1 + input.example.mdem | 19 +++++++++++++++++++ src/app/.gitkeep | 0 src/compiler/compiler.go | 7 +++++++ src/compiler/go.mod | 3 +++ 5 files changed, 30 insertions(+) create mode 100644 .gitignore create mode 100644 input.example.mdem create mode 100644 src/app/.gitkeep create mode 100644 src/compiler/compiler.go create mode 100644 src/compiler/go.mod 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