Beta-release of the CBS framework
Funcons.zip
from memory stick to diskFuncons.zip
to create the Funcons
folderN.B. Not yet fully developed, nor efficient enough for general use…
Funcons/Spoofax-Funcons
Workspace: Funcons/Workspace
Resource perspective - Project Explorer shows:
CBSEditor (?)
Funcons_beta_DynSem.interpreter
SL-cbs
Funcons-beta
SL
SL-1-Lexemes
SL-1-Lexemes.cbs
index.html
...
tests
...
SL-Start
SL-Start.cbs
index.html
SLEditor
CBSEditor
This can take a few minutes… (plugin not yet available)
SL-cbs
This can take a few minutes…
SL-Start/SL-Start.cbs
To avoid premature analysis: Spoofax (meta): Delay editor analysis by 5s
Funcons-beta
Language "..."
headingCmd
- or Ctrl
-hovering activates the linksSpoofax: Generate
menu:
Spoofax: Generate: Language editor
SL-Start.cbs
Any missing or outdated SLEditor files are regenerated.
SL-Start/index.html
Open with a web browser (Eclipse or external)
#N
are hyperlinks
Cmd
or Ctrl
hovering enables followingMenu
dropdown has hyperlinks:
SL-Start
(language root file)SL-Funcons-Index
(reused funcons)Funcons-beta
(index of all current funcons)Languages-beta
(lists some available languages)About CBS
Rule...
/*...*/
#N ...
SLEditor
Any flagged errors need to corrected before proceeding.
CBSEditor
This can take a few minutes… (plugin not yet available)
SL-2-Expressions/tests/HelloWorld.sl
Any syntax errors are flagged.
Spoofax: Generation: Generate funcons
The generated funcon term appears in HelloWorld.fct
SL-2-Expressions/tests/HelloWorld.fct
Run: Run configurations...
Select Java Application: Funcons_beta
.
Press the Run
button.
The result should appear in the Console, and correspond to
SL-2-Expressions/tests/HelloWorld.output
(apart from a NullV()
at the end).
For subsequent interpretation of funcon terms, just click the
green Run
button in the bar of icons.