All Projects → Cirru → Calcit Editor

Cirru / Calcit Editor

Licence: mit
Intuitive S-expressions editing for Clojure(Script).

Programming Languages

clojurescript
191 projects

Projects that are alternatives of or similar to Calcit Editor

Hast
Hypertext Abstract Syntax Tree format
Stars: ✭ 344 (+117.72%)
Mutual labels:  syntax-tree
Calyx
A Ruby library for generating text with recursive template grammars.
Stars: ✭ 51 (-67.72%)
Mutual labels:  syntax-tree
Fall
Stars: ✭ 92 (-41.77%)
Mutual labels:  syntax-tree
Joern
Open-source code analysis platform for C/C++/Java based on code property graphs
Stars: ✭ 386 (+144.3%)
Mutual labels:  syntax-tree
Metric Parser
📜 AST-based advanced mathematical parser written by Typescript.
Stars: ✭ 26 (-83.54%)
Mutual labels:  syntax-tree
Myna Parser
Myna Parsing Library
Stars: ✭ 69 (-56.33%)
Mutual labels:  syntax-tree
Reshape
💠 transform html with javascript plugins
Stars: ✭ 314 (+98.73%)
Mutual labels:  syntax-tree
Astviewer
Python Abstract Syntax Tree viewer in Qt
Stars: ✭ 101 (-36.08%)
Mutual labels:  syntax-tree
Fssqldom
Library for SQL parsing, AST manipulation and SQL generation in F#
Stars: ✭ 45 (-71.52%)
Mutual labels:  syntax-tree
Libdparse
Library for lexing and parsing D source code
Stars: ✭ 91 (-42.41%)
Mutual labels:  syntax-tree
Verible
Verible is a suite of SystemVerilog developer tools, including a parser, style-linter, and formatter.
Stars: ✭ 384 (+143.04%)
Mutual labels:  syntax-tree
Mdast
Markdown Abstract Syntax Tree format
Stars: ✭ 493 (+212.03%)
Mutual labels:  syntax-tree
Decent Messup
Mess up js code in a different way
Stars: ✭ 84 (-46.84%)
Mutual labels:  syntax-tree
Javaparser
Java 1-15 Parser and Abstract Syntax Tree for Java, including preview features to Java 13
Stars: ✭ 3,972 (+2413.92%)
Mutual labels:  syntax-tree
Genetic Programming
Symbolic regression solver, based on genetic programming methodology.
Stars: ✭ 98 (-37.97%)
Mutual labels:  syntax-tree
Kgt
BNF wrangling and railroad diagrams
Stars: ✭ 312 (+97.47%)
Mutual labels:  syntax-tree
Astexplorer.app
https://astexplorer.net with ES Modules support and Hot Reloading
Stars: ✭ 65 (-58.86%)
Mutual labels:  syntax-tree
Nlcst
Natural Language Concrete Syntax Tree format
Stars: ✭ 116 (-26.58%)
Mutual labels:  syntax-tree
Unist Util Visit
utility to visit nodes
Stars: ✭ 101 (-36.08%)
Mutual labels:  syntax-tree
Syntax Highlighter
Syntax Highlighter extension for Visual Studio Code (VSCode). Based on Tree-sitter.
Stars: ✭ 88 (-44.3%)
Mutual labels:  syntax-tree

Calcit Editor

Intuitive S-expressions editing for Clojure(Script).

  • Auto Layout: expressions in blocks and inline-blocks, styled with CSS
  • Tree Editing: intuitive way of structural editing as nested expressions
  • Call Stack Navigation: more fine-grained functions navigation
  • Collaboration: changes real-time synced among multiple clients via WebSockets

One function/definition in a screen, Command d to open called function at next tab, Command j Command k Command i to switch:

Expression editor

Based on DOM/CSS, easy for another theme:

Styling

Command p to search and jump inspired by Sublime Text :

Search panel

Browse namespaces and functions/variables:

Definitions browser

Usages

npm CLI of calcit-editor

Install CLI and start a local WebSocket server, it uses calcit.cirru as a snapshot file:

npm i -g calcit-editor
calcit-editor

UI of the editor is a webapp on http://calcit-editor.cirru.org/?port=6001

You may try with my project templates:

or even clone current repo for trying out.

Don't forget to check out keyboard shortcuts. My old introduction videos can be found on YouTube.

Options

CLI variables for compiling code directly from calcit.cirru:

op=compile calcit-editor

The web UI takes several query options:

http://calcit-editor.cirru.org/?host=localhost&port=6001
  • port, defaults to 6001
  • host, defaults to localhost, connects via WebSocket

By default, ClojureScript code is emitted in src/ by pressing Command s. When server is stopped with Control c, calcit.cirru is also updated.

There are also several options in :configs field in calcit.cirru:

  • port, defaults to 6001
  • output, defaults to src/
  • extension, defaults to .cljs

Editor UI is decoupled with WebSocket server, so it's okay to connect remote server from multiple pages with all expressions synced in real-time.

Also there's a local version of web editor to enable:

ui=local calcit-editor
# serving UI at http://localhost:6101

Compact output

compact=true caclcit-editor

When :compact-output? true is specified in calcit.cirru, "Compact Mode" is activated. Clojure(Script) will no longer be emitted, instead two files will be emitted:

  • compact.cirru contains a compact version of data tree of the program.
  • .compact-inc.cirru contains diff information from latest modification of per definition.

It's not useful for Clojure but would can be used for other experiments in calcit-runner.

Workflow

Based on https://github.com/Cumulo/cumulo-workflow

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].