feat: Allow indented continuation lines
Some checks reported errors
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build was killed

Resolves #2.
This commit is contained in:
Glen Whitney 2021-02-01 00:29:00 -08:00
parent 2e49065031
commit eaa06e62eb
9 changed files with 58 additions and 33 deletions

View file

@ -19,8 +19,8 @@ rules // Analysis
// multi-file analysis
// editor-analyze = stx-editor-analyze(pre-analyze, post-analyze|"statics", "projectOk", "fileOk")
pre-analyze = origin-track-forced(explicate-injections-fostr-Ex)
post-analyze = origin-track-forced(implicate-injections-fostr-Ex)
pre-analyze = origin-track-forced(explicate-injections-fostr-Start)
post-analyze = origin-track-forced(implicate-injections-fostr-Start)
rules // Editor Services

View file

@ -42,8 +42,8 @@ rules
brack: x -> $<[<x>]>
strategies
// wrap expression in a toplevel and then apply code generation
haskell = !TopLevel(<id>); bottomup(try(hs <+ hslist))
haskell = bottomup(try(hs <+ hslist))
// Interface haskell code generation with editor services and file system
to-haskell: (selected, _, _, path, project-path) -> (filename, result)

View file

@ -24,8 +24,8 @@ rules
jslist: x -> $<[<<join(|", ")>x>]>
strategies
// wrap expression in a toplevel, then generate code from bottom up
javascript = !TopLevel(<id>); bottomup(try(js <+ jslist))
javascript = bottomup(try(js <+ jslist))
// Interface javascript code generation with editor services and file system
to-javascript: (selected, _, _, path, project-path) -> (filename, result)

View file

@ -28,8 +28,7 @@ rules
strategies
// wrap with a toplevel, then generate code from the bottom up
python = !TopLevel(<id>); bottomup(try(py <+ pylist))
python = bottomup(try(py <+ pylist))
// Interface python code generation with editor services and file system
to-python: (selected, _, _, path, project-path) -> (filename, result)

View file

@ -6,11 +6,9 @@ imports signatures/fostr-sig
rules // single-file entry point
programOk : Ex
programOk : Start
programOk(Sum(_)).
programOk(Receives(_,_)).
programOk(Enters(_,_)).
programOk(TopLevel(_)).
rules // multi-file entry point
@ -18,6 +16,6 @@ rules // multi-file entry point
projectOk(s).
fileOk : scope * Ex
fileOk : scope * Start
fileOk(s, Receives(_,_)).
fileOk(s, TopLevel(_)).