Skip to content

Commit

Permalink
refactor all token definitions to improve readability, also start wor…
Browse files Browse the repository at this point in the history
…king on ci/cd integration
  • Loading branch information
Ze7111 committed Jun 5, 2024
1 parent 86f06d8 commit cb6542b
Show file tree
Hide file tree
Showing 22 changed files with 726 additions and 519 deletions.
6 changes: 2 additions & 4 deletions .clangd
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
CompileFlags: # Tweak the parse settings, example directory given to show format
Add:
- "-std=c++2b"
- "-I/opt/homebrew/opt/llvm/include"
CompileFlags:
CompileCommandsDir: .
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: CI

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Install xmake
run: |
curl -fsSL https://xmake.io/shget.text | sh
- name: Configure and build
run: |
xmake f -m debug
xmake
- name: Run tests
run: |
xmake run test
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ build/
# MacOS Cache
.DS_Store


# Clanged Cache
.clangd/
.cache/
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"*.db": "sql",
"*.v": "verilog",
"*.fs": "fsharp",
"*.py": "python"
"*.py": "python",
"*.def": "cpp",
},
"files.autoSave": "afterDelay",
"explorer.confirmDelete": false,
Expand Down
21 changes: 21 additions & 0 deletions compile_commands.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[
{
"directory": "/Volumes/Container/Projects/Helix/helix-lang",
"arguments": ["/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang", "-c", "-Qunused-arguments", "-target", "arm64-apple-macos14.5", "-isysroot", "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk", "-g", "-Wall", "-O3", "-std=c++2b", "-I", "/Users/dhruvan/.xmake/packages/c/catch2/v3.6.0/0a747bbcabc64c97b99b19d67325207e/include", "-stdlib=libc++", "-fno-rtti", "-I/opt/llvm-aarch64/include", "-o", "build/.objs/test/macosx/arm64/debug/tests/test_tokens.cc.o", "tests/test_tokens.cc"],
"file": "tests/test_tokens.cc"
},
{
"directory": "/Volumes/Container/Projects/Helix/helix-lang",
"arguments": ["/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang", "-c", "-Qunused-arguments", "-target", "arm64-apple-macos14.5", "-isysroot", "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk", "-g", "-Wall", "-O3", "-std=c++2b", "-stdlib=libc++", "-fno-rtti", "-I/opt/llvm-aarch64/include", "-o", "build/.objs/helix-lang/macosx/arm64/debug/source/main.cc.o", "source/main.cc"],
"file": "source/main.cc"
},
{
"directory": "/Volumes/Container/Projects/Helix/helix-lang",
"arguments": ["/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang", "-c", "-Qunused-arguments", "-target", "arm64-apple-macos14.5", "-isysroot", "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk", "-g", "-Wall", "-O3", "-std=c++2b", "-stdlib=libc++", "-fno-rtti", "-I/opt/llvm-aarch64/include", "-o", "build/.objs/helix-lang/macosx/arm64/debug/source/cli/cli.cc.o", "source/cli/cli.cc"],
"file": "source/cli/cli.cc"
},
{
"directory": "/Volumes/Container/Projects/Helix/helix-lang",
"arguments": ["/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang", "-c", "-Qunused-arguments", "-target", "arm64-apple-macos14.5", "-isysroot", "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk", "-g", "-Wall", "-O3", "-std=c++2b", "-stdlib=libc++", "-fno-rtti", "-I/opt/llvm-aarch64/include", "-o", "build/.objs/helix-lang/macosx/arm64/debug/source/parser/cpp/fn_signatures.cc.o", "source/parser/cpp/fn_signatures.cc"],
"file": "source/parser/cpp/fn_signatures.cc"
}]
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit cb6542b

Please sign in to comment.