diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..01072ca --- /dev/null +++ b/.editorconfig @@ -0,0 +1,8 @@ +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +[*.v] +indent_style = tab diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9a98968 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,8 @@ +* text=auto eol=lf +*.bat eol=crlf + +*.v linguist-language=V +*.vv linguist-language=V +*.vsh linguist-language=V +v.mod linguist-language=V +.vdocignore linguist-language=ignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..abb6030 --- /dev/null +++ b/.gitignore @@ -0,0 +1,27 @@ +# Binaries for programs and plugins +main +TypoML +*.exe +*.exe~ +*.so +*.dylib +*.dll + +# Ignore binary output folders +bin/ + +# Ignore common editor/system specific metadata +.DS_Store +.idea/ +.vscode/ +*.iml + +# ENV +.env + +# Web assets and local databases +*.db +*.js + +# Ignore installed modules through `v install --local`: +modules/ diff --git a/Makefile b/Makefile index 3d42f65..92ece25 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,8 @@ all: - gcc -o typoml src/* + v . run: - ./typoml + ./TypoML clean: - rm -f typoml + rm -f TypoML diff --git a/main.v b/main.v new file mode 100644 index 0000000..edf2574 --- /dev/null +++ b/main.v @@ -0,0 +1,5 @@ +module main + +fn main() { + println('Hello World!') +} diff --git a/src/main.c b/src/main.c deleted file mode 100644 index 33c14ce..0000000 --- a/src/main.c +++ /dev/null @@ -1,3 +0,0 @@ -int main() { - return 0; -} diff --git a/v.mod b/v.mod new file mode 100644 index 0000000..152bf4f --- /dev/null +++ b/v.mod @@ -0,0 +1,7 @@ +Module { + name: 'TypoML' + description: '' + version: '0.0.0' + license: 'ISC' + dependencies: [] +}