diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml index 166219d..c867a22 100644 --- a/.github/workflows/coverage.yaml +++ b/.github/workflows/coverage.yaml @@ -78,7 +78,7 @@ jobs: - name: Generate coverage report run: | - hpc-codecov cabal:glados-test --exclude Main,Paths_glados --out codecov.json --format codecov --verbose + hpc-codecov cabal:frostc-test --exclude Main,Paths_frostc --out codecov.json --format codecov --verbose - name: Publish coverage report to Discord if: github.ref == 'refs/heads/main' @@ -95,7 +95,7 @@ jobs: if: github.ref == 'refs/heads/main' run: | cabal haddock --haddock-html --haddock-hyperlink-source --haddock-quickjump - echo "DOCS_DIR=$(find dist-newstyle/build -type d -path '*/doc/html/glados' | head -n 1)" >> $GITHUB_ENV + echo "DOCS_DIR=$(find dist-newstyle/build -type d -path '*/doc/html/frostc' | head -n 1)" >> $GITHUB_ENV - name: Deploy Haddock to GitHub Pages uses: ./external/actions-gh-pages diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 3c97446..892e3ca 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -38,8 +38,8 @@ jobs: - name: Get binary path run: | - mv "$(cabal list-bin exe:glados)" "$(cabal list-bin exe:glados)_$(uname -s)_$(uname -m)" - echo "GLADOS_BIN=$(cabal list-bin exe:glados)_$(uname -s)_$(uname -m)" >> $GITHUB_ENV + mv "$(cabal list-bin exe:frostc)" "$(cabal list-bin exe:frostc)_$(uname -s)_$(uname -m)" + echo "GLADOS_BIN=$(cabal list-bin exe:frostc)_$(uname -s)_$(uname -m)" >> $GITHUB_ENV - name: Upload artifacts uses: actions/upload-artifact@v4 diff --git a/Makefile b/Makefile index 7b2f6be..590703f 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,8 @@ -PROJECT_NAME := glados +PROJECT_NAME := frostc BUILD_DIR := dist-newstyle EXECUTABLE := $(PROJECT_NAME) -BUILD_OUTPUT := $(shell cabal list-bin exe:glados) +BUILD_OUTPUT := $(shell cabal list-bin exe:frostc) COLOR_RESET := \033[0m COLOR_BLUE := \033[1;34m diff --git a/app/Main.hs b/app/Main.hs index 2c02660..c1b038e 100644 --- a/app/Main.hs +++ b/app/Main.hs @@ -56,8 +56,8 @@ optionsInfo = O.info (O.helper <*> optionsParser) ( O.fullDesc - <> O.progDesc "Compile FrostLang source code to LLVM IR" - <> O.header "FrostLang Compiler" + <> O.progDesc "Compile Frost source code to LLVM Intermediate Representation" + <> O.header "The Frost Programming Language Compiler" ) compile :: String -> String -> Bool -> E.ExceptT CompileError IO String diff --git a/docs/book.json b/docs/book.json index b626013..d315305 100644 --- a/docs/book.json +++ b/docs/book.json @@ -1,6 +1,6 @@ { - "title": "FrostLang HandBook", - "description": "Developer Cheat Sheet for the FrostLang Programming Language", + "title": "The Frost Programming Language Handbook", + "description": "Developer Cheat Sheet for the the Frost Programming Language", "plugins": [ "code", "search", diff --git a/docs/developer-manual/contributing/building-from-source.md b/docs/developer-manual/contributing/building-from-source.md index e06cd01..ed33d9a 100644 --- a/docs/developer-manual/contributing/building-from-source.md +++ b/docs/developer-manual/contributing/building-from-source.md @@ -21,7 +21,7 @@ Before you begin, ensure you have the following tools installed: Clone the Frost repository and initialize its submodules: ```bash - git clone --recursive https://github.com/Jabolol/glados.git + git clone --recursive https://github.com/Jabolol/frost.git cd frost ``` @@ -68,7 +68,7 @@ Before you begin, ensure you have the following tools installed: We maintain Haddock documentation for the Frost compiler. It is currently hosted on GitHub Pages and can be accessed at -[https://jabolol.github.io/glados/](https://jabolol.github.io/glados/). +[https://jabolol.github.io/frost/](https://jabolol.github.io/frost/). To generate the documentation locally, run the following command: diff --git a/docs/user-manual/getting-started.md b/docs/user-manual/getting-started.md index 7964a91..b6bff3f 100644 --- a/docs/user-manual/getting-started.md +++ b/docs/user-manual/getting-started.md @@ -9,7 +9,7 @@ journey with Frost programming. Currently available for `Linux` (x86_64) and **Download and Install** -1. Navigate to the [releases page](https://github.com/Jabolol/glados/releases/) +1. Navigate to the [releases page](https://github.com/Jabolol/frost/releases/) 2. Download the latest version for your operating system 3. Extract the archive to your preferred location 4. Add the `frostc` binary to your system's PATH @@ -85,7 +85,7 @@ Save it as `hello.ff` and use program: ```bash -./frostc -i hello.ff -o hello.ll | lli +frostc -i hello.ff -o hello.ll | lli ``` ## Next Steps diff --git a/examples/README.md b/examples/README.md index 5eb59c6..3ce5edf 100644 --- a/examples/README.md +++ b/examples/README.md @@ -39,7 +39,7 @@ run the LLVM IR. For example, to run the Mandelbrot set example, you can run the following commands: ```sh -$ ./glados -i mandelbrot.ff -o mandelbrot.ll +$ frostc -i mandelbrot.ff -o mandelbrot.ll ``` > [!TIP] @@ -91,7 +91,7 @@ Have a look at [`echo.ff`](echo.ff) for the acutal implementation 2. Compile the program ```sh -$ ./glados -i echo.ff -o echo.ll +$ frostc -i echo.ff -o echo.ll ``` 3. Run the server @@ -125,7 +125,7 @@ sum: int int -> int = a b { 2. Compile the `sum.ff` file to LLVM IR: ```sh -$ ./glados -i sum.ff -o sum.ll +$ frostc -i sum.ff -o sum.ll ``` #### Embedding in `C` diff --git a/glados.cabal b/glados.cabal index 830d79f..79ed1eb 100644 --- a/glados.cabal +++ b/glados.cabal @@ -1,7 +1,7 @@ cabal-version: 3.4 -name: glados +name: frostc version: 1.0.0.0 -synopsis: Generic Language and Data Operand Syntax +synopsis: The Frost Programming Language Compiler license: MIT license-file: LICENSE author: Javier R @@ -12,7 +12,7 @@ extra-doc-files: README.md source-repository head type: git - location: git@github.com:EpitechPromo2027/B-FUN-500-BAR-5-2-glados-oriol.linan.git + location: git@github.com:Jabolol/frost.git common warnings ghc-options: @@ -64,13 +64,13 @@ library hs-source-dirs: lib default-language: Haskell2010 -executable glados +executable frostc import: warnings main-is: Main.hs build-depends: base ^>=4.17.2.1, filepath >=1.4.2 && <1.5, - glados, + frostc, llvm-hs-pretty >=0.9.0 && <0.10, optparse-applicative >=0.18.1 && <0.19, pretty-simple >=4.1.2 && <4.2, @@ -80,7 +80,7 @@ executable glados hs-source-dirs: app default-language: Haskell2010 -test-suite glados-test +test-suite frostc-test import: warnings default-language: Haskell2010 type: exitcode-stdio-1.0 @@ -110,7 +110,7 @@ test-suite glados-test QuickCheck, base ^>=4.17.2.1, bytestring >=0.11.2 && <0.12, - glados, + frostc, hspec, hspec-discover, llvm-hs-pure >=9.0.0 && <9.1,