breck7 / scrollsdk

Build on top of Scroll.
https://sdk.scroll.pub
379 stars 17 forks source link

Designer Bug: Grammars with errors do not populate share link #179

Closed breck7 closed 4 weeks ago

breck7 commented 1 year ago

Situation: someone needs help with a Grammar with a bug.

Expected: they are able to copy/paste the Share link.

Actual: share link does not update if there are grammar errors.

The solution is just to decouple grammar error detection from the Share link and catch those errors while ensuring share link always works.

// Cell Parsers
nameCell
 description A person's name
 highlightScope string
keyworddCell
 highlightScope keyword

// Line Parsers
newlangParser
 root
 description This is the basic root node for your new prefix Tree Language.
 catchAllParser catchAllErrorParser
 inScope helloParser
helloParser
 catchAllCellType nameCell
 cells keywordCell
 crux hello
catchAllErrorParser
 baseParser errorParser