Skip to content

Parse single sexpre#100

Merged
Sigmanificient merged 2 commits intomainfrom
parse_single_sexpre
Dec 8, 2025
Merged

Parse single sexpre#100
Sigmanificient merged 2 commits intomainfrom
parse_single_sexpre

Conversation

@Fenriir42
Copy link
Copy Markdown
Contributor

Pull Request

Description

Add an API to parse a single expression then return the leftovers

Related Story/Task

Closes #
Related to #

Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing
    functionality to not work as expected)
  • 📚 Documentation update
  • ♻️ Refactor (no functional changes)
  • 🧪 Test addition or modification
  • ⚙️ Build/CI changes

Implementation Details

Add the ParseNext function that take a String in input and output a SExpr and a String

Checklist

  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
    (including regression and/or integration tests)
  • Any dependent changes have been merged and published
  • The related story/task is updated

Testing

Added all the necessary tests, please refer to the changes in parser/tests/Spec.hs

Screenshots / Examples

{8D13DEFB-6A0E-40EB-99C5-7C97CF241610}

Deployment Notes


@Fenriir42 Fenriir42 added this to the 1. Defense - Interpreter milestone Dec 8, 2025
@Fenriir42 Fenriir42 requested a review from Ciznia December 8, 2025 16:47
@Fenriir42 Fenriir42 self-assigned this Dec 8, 2025
@Fenriir42 Fenriir42 added 1. difficulty : easy This task is simple or someone already knows how to do it. 2. priority: high Requires quick attention to prevent delays or issues. 3. type: feature Adds new functionality or capability to the project. 7. component: parser Code related to the parser that processes source code syntax. labels Dec 8, 2025
@Fenriir42 Fenriir42 added this to GlaDOS Dec 8, 2025
@github-project-automation github-project-automation Bot moved this to Created in GlaDOS Dec 8, 2025
@Fenriir42 Fenriir42 moved this from Created to In Review in GlaDOS Dec 8, 2025
@github-actions github-actions Bot added the 7. component: tests Code related to the test suite, test framework, test utilities, or test coverage. label Dec 8, 2025
@renman-ymd renman-ymd added the 5. status: waiting-for-review This PR is waiting for reviewer feedback label Dec 8, 2025
@github-actions github-actions Bot added the 8. part: 2-custom-language Second deliverable: Custom language with compiler and VM. label Dec 8, 2025
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Dec 8, 2025

⚠️ Release label required

This PR targets main but has no release label (6. release: major/minor/patch).

Please add one to trigger automatic version bumping:

  • major: Breaking changes (x.0.0)
  • minor: New features (0.x.0)
  • patch: Bug fixes (0.0.x)

2 similar comments
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Dec 8, 2025

⚠️ Release label required

This PR targets main but has no release label (6. release: major/minor/patch).

Please add one to trigger automatic version bumping:

  • major: Breaking changes (x.0.0)
  • minor: New features (0.x.0)
  • patch: Bug fixes (0.0.x)

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Dec 8, 2025

⚠️ Release label required

This PR targets main but has no release label (6. release: major/minor/patch).

Please add one to trigger automatic version bumping:

  • major: Breaking changes (x.0.0)
  • minor: New features (0.x.0)
  • patch: Bug fixes (0.0.x)

@renman-ymd renman-ymd added 5. status: ready-for-merge This PR is approved and ready to be merged and removed 5. status: waiting-for-review This PR is waiting for reviewer feedback labels Dec 8, 2025
@renman-ymd renman-ymd moved this from In Review to Waiting Merge in GlaDOS Dec 8, 2025
@Sigmanificient Sigmanificient merged commit 4ae75a8 into main Dec 8, 2025
22 checks passed
@Sigmanificient Sigmanificient deleted the parse_single_sexpre branch December 8, 2025 17:33
@github-project-automation github-project-automation Bot moved this from Waiting Merge to Closed in GlaDOS Dec 8, 2025
@Sigmanificient Sigmanificient added the 6. release: minor New features requiring minor version bump (0.x.0). label Dec 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1. difficulty : easy This task is simple or someone already knows how to do it. 2. priority: high Requires quick attention to prevent delays or issues. 3. type: feature Adds new functionality or capability to the project. 5. status: ready-for-merge This PR is approved and ready to be merged 6. release: minor New features requiring minor version bump (0.x.0). 7. component: parser Code related to the parser that processes source code syntax. 7. component: tests Code related to the test suite, test framework, test utilities, or test coverage. 8. part: 2-custom-language Second deliverable: Custom language with compiler and VM.

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

4 participants