Skip to content

Parser stalls on some bad inputs. #7

@AHartNtkn

Description

@AHartNtkn

For whatever reason, the Caledon program will stall, eating up an arbitrarily large amount of memory when encountering certain code which should instead produce syntax errors. Here are some examples of code which, if encountered, will trigger what I'm talking about;

defn unit : prop
  as
defn unit : prop
  as \(P : prop) P . P
defn unit : prop
  as [P : prop] P -> P

defn tt : unit
  as \0 p . p
defn unit : prop
  | tt = 
defn unit : prop
  | tt = \(P : prop) . unit
defn unit : prop
   | one  = unit

a(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions