Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

execute macro actions in phase 1 #240

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open

Commits on May 8, 2024

  1. Configuration menu
    Copy the full SHA
    b2a5c06 View commit details
    Browse the repository at this point in the history

Commits on May 13, 2024

  1. Configuration menu
    Copy the full SHA
    a706a10 View commit details
    Browse the repository at this point in the history

Commits on May 18, 2024

  1. with-unknown-type examples

    gelisam committed May 18, 2024
    Configuration menu
    Copy the full SHA
    7392b3c View commit details
    Browse the repository at this point in the history

Commits on May 20, 2024

  1. generalize alts

    gelisam committed May 20, 2024
    Configuration menu
    Copy the full SHA
    d1d4335 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7411b64 View commit details
    Browse the repository at this point in the history

Commits on May 21, 2024

  1. Pattern, TypePattern, vs PolyProblem prims

    previously, "else" was considered a "pattern primitive", even though it
    is valid in both the pattern and the type pattern Problems. And
    "with-unknown-macro" was considered a "universal primitive", because it
    works in any Problem.
    
    Now, a "pattern primitive" means a pattern which is _only_ valid in the
    pattern Problem, and a "type pattern primitive" (a new term!) means a
    pattern which is _only_ valid in the type pattern Problem. There are no
    such primitives yet, but I plan to add a type pattern primitive, this
    commit is in preparation for that.
    
    Finally, a "poly-problem primitive" now means a primitive which works in
    more than one Problem; all of them in the case of "with-unknown-type",
    and two of them in the case of "else".
    gelisam committed May 21, 2024
    Configuration menu
    Copy the full SHA
    083837e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    62c1a0e View commit details
    Browse the repository at this point in the history

Commits on May 23, 2024

  1. fork job at the phase of the output

    forkAwaitingTypeCase schedules a job which (eventually) executes the
    Macro actions which follow the type-case. shifting the phase before
    forking did cause that Macro action to be executed in a shifted phase,
    but also had the unintended effect of shifting the phase at which to
    interpret the Syntax returned by the macro. The solution: don't shift
    the fork call, but do shift the Macro action it eventually executes.
    gelisam committed May 23, 2024
    Configuration menu
    Copy the full SHA
    e6e1d81 View commit details
    Browse the repository at this point in the history

Commits on May 27, 2024

  1. WIP toy.kl

    gelisam committed May 27, 2024
    Configuration menu
    Copy the full SHA
    0d88fb6 View commit details
    Browse the repository at this point in the history

Commits on May 29, 2024

  1. Configuration menu
    Copy the full SHA
    a73bac6 View commit details
    Browse the repository at this point in the history
  2. new Problem: type constructor

    I want to add a type pattern macro in phase 1 which matches on a type
    constructor in phase 0. The only way to lookup a type constructor is to
    expand the name of that type constructor (so that hygiene rules apply
    properly). That means we now need macros which return type constructors,
    not types nor type patterns.
    samuel-gelineau-at-well-dot committed May 29, 2024
    Configuration menu
    Copy the full SHA
    6fd4d06 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d141285 View commit details
    Browse the repository at this point in the history

Commits on May 31, 2024

  1. Configuration menu
    Copy the full SHA
    5bcc813 View commit details
    Browse the repository at this point in the history

Commits on Jun 1, 2024

  1. Configuration menu
    Copy the full SHA
    0f2f598 View commit details
    Browse the repository at this point in the history
  2. [WIP]

    test command:
    
    ghcid --test=':set -XOverloadedStrings' --test='ShortShow.shortShow $ Core.Core $ Core.CoreDataCase (Syntax.SrcLoc.SrcLoc "" (Syntax.SrcLoc.SrcPos 0 0) (Syntax.SrcLoc.SrcPos 0 0)) (Core.Core $ Core.CoreInteger 42) [(Core.DataPattern $ Core.DataCtorPattern (Datatype.Constructor (ModuleName.KernelName ModuleName.kernelName) "just") [], Core.Core $ Core.CoreInteger 42)]'
    samuel-gelineau-at-well-dot committed Jun 1, 2024
    Configuration menu
    Copy the full SHA
    f21e777 View commit details
    Browse the repository at this point in the history