Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions .clusterfuzzlite/Containerfile

This file was deleted.

11 changes: 11 additions & 0 deletions .clusterfuzzlite/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# SPDX-License-Identifier: MPL-2.0
# Copyright (c) Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
#
# ClusterFuzzLite / OSS-Fuzz build image. The ClusterFuzzLite actions
# (google/clusterfuzzlite) build the project from `.clusterfuzzlite/Dockerfile`
# by hard-coded convention, so this file MUST be named `Dockerfile`.
FROM gcr.io/oss-fuzz-base/base-builder-rust
RUN apt-get update && apt-get install -y make autoconf automake libtool
COPY . $SRC/my-lang
WORKDIR $SRC/my-lang
COPY .clusterfuzzlite/build.sh $SRC/
23 changes: 12 additions & 11 deletions .clusterfuzzlite/build.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
#!/bin/bash -eu
<<<<<<< HEAD
# SPDX-License-Identifier: MPL-2.0
# Copyright (c) Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
#
# OSS-Fuzz / ClusterFuzzLite build script: compile the cargo-fuzz targets in
# `fuzz/` and stage each binary into $OUT. Run by `compile` inside the
# base-builder-rust image (see .clusterfuzzlite/Dockerfile).
cd "$SRC/my-lang"
cargo +nightly fuzz build -O

cd $SRC/project
cargo +nightly fuzz build --release
cp fuzz/target/*/release/fuzz_* $OUT/
=======
cd $SRC/*/fuzz
cargo +nightly fuzz build
for target in fuzz_targets/*; do
target_name=$(basename ${target%.rs})
cp target/x86_64-unknown-linux-gnu/release/$target_name $OUT/
release="$SRC/my-lang/fuzz/target/x86_64-unknown-linux-gnu/release"
for target in fuzz/fuzz_targets/*.rs; do
name="$(basename "${target%.rs}")"
cp "$release/$name" "$OUT/"
done
>>>>>>> 7f63c53cc206ad0448f9e17e5b74dde7cf393117
21 changes: 0 additions & 21 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,15 @@ SPDX-License-Identifier: CC-BY-SA-4.0
Copyright (c) Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
-->
# Clone the repository
<<<<<<< HEAD
git clone https://github.com/hyperpolymath/my-lang-archive.git
cd my-lang-archive
=======
git clone https://github.com/hyperpolymath/my-lang.git
cd my-lang
>>>>>>> 7f63c53cc206ad0448f9e17e5b74dde7cf393117

# Using Nix (recommended for reproducibility)
nix develop

# Or using toolbox/distrobox
<<<<<<< HEAD
toolbox create my-lang-archive-dev
toolbox enter my-lang-archive-dev
=======
toolbox create my-lang-dev
toolbox enter my-lang-dev
>>>>>>> 7f63c53cc206ad0448f9e17e5b74dde7cf393117
# Install dependencies manually

# Verify setup
Expand All @@ -31,11 +21,7 @@ just test # Run test suite

### Repository Structure
```
<<<<<<< HEAD
my-lang-archive/
=======
my-lang/
>>>>>>> 7f63c53cc206ad0448f9e17e5b74dde7cf393117
├── src/ # Source code (Perimeter 1-2)
├── lib/ # Library code (Perimeter 1-2)
├── extensions/ # Extensions (Perimeter 2)
Expand Down Expand Up @@ -104,17 +90,10 @@ Use the [feature request template](.github/ISSUE_TEMPLATE/feature_request.md) an

Look for issues labelled:

<<<<<<< HEAD
- [`good first issue`](https://github.com/hyperpolymath/my-lang-archive/labels/good%20first%20issue) — Simple Perimeter 3 tasks
- [`help wanted`](https://github.com/hyperpolymath/my-lang-archive/labels/help%20wanted) — Community help needed
- [`documentation`](https://github.com/hyperpolymath/my-lang-archive/labels/documentation) — Docs improvements
- [`perimeter-3`](https://github.com/hyperpolymath/my-lang-archive/labels/perimeter-3) — Community sandbox scope
=======
- [`good first issue`](https://github.com/hyperpolymath/my-lang/labels/good%20first%20issue) — Simple Perimeter 3 tasks
- [`help wanted`](https://github.com/hyperpolymath/my-lang/labels/help%20wanted) — Community help needed
- [`documentation`](https://github.com/hyperpolymath/my-lang/labels/documentation) — Docs improvements
- [`perimeter-3`](https://github.com/hyperpolymath/my-lang/labels/perimeter-3) — Community sandbox scope
>>>>>>> 7f63c53cc206ad0448f9e17e5b74dde7cf393117

---

Expand Down
2 changes: 2 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
SPDX-License-Identifier: MPL-2.0

Mozilla Public License Version 2.0
==================================

Expand Down
1 change: 1 addition & 0 deletions crates/my-lsp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ fn extract_error_location(error: &CheckError) -> (usize, usize) {
CheckError::NonBoolCondition { line, column, .. } => (*line, *column),
CheckError::ExpressionTooDeep { line, column, .. } => (*line, *column),
CheckError::Other { line, column, .. } => (*line, *column),
CheckError::ResourceViolation { line, column, .. } => (*line, *column),
}
}

Expand Down
Loading