Skip to content

cookshack/codemirror-lang-lezer-tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@cookshack/codemirror-lang-lezer-tree

Language support for Lezer trees (.leztree files), for CodeMirror 6.

The format of these Lezer trees is like

Script(LineComment,
       VariableDeclaration(let,
                           VariableDefinition,
                           Equals,
                           Number),
       ExpressionStatement(AssignmentExpression(VariableName,
                                                UpdateOp,
                                                Number)),
       ExpressionStatement(CallExpression(MemberExpression(VariableName,
                                                           .,
                                                           PropertyName),
                                          ArgList(\(,
                                                  VariableName,
                                                  \)))))

as produced by the exported function pretty.

The idea is to have syntax highlighting of syntax trees within the editor, to help while developing Lezer grammars for other languages. See A-x Syntax Tree in Bred.

About

(MIRROR) Language support for Lezer trees, for CodeMirror 6

Resources

License

Stars

Watchers

Forks