• neos Universal Compiler and Tree-sitter

    From Mr Flibble@21:1/5 to All on Wed Apr 9 19:56:10 2025
    XPost: comp.theory

    Hi!

    Interestingly whilst my project, neos (the universal compiler that can
    compile any programming language) is still a WIP I have already
    implemented functionality equivalent to what Tree-sitter provides: mapping between AST and original source code so you can do things such as syntax highlighting in a code editor.

    /Flibble

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mr Flibble@21:1/5 to All on Wed Apr 9 23:43:35 2025
    XPost: comp.theory

    On Wed, 09 Apr 2025 23:30:03 +0000, candycanearter07 wrote:

    Mr Flibble <flibble@red-dwarf.jmc.corp> wrote at 19:56 this Wednesday
    (GMT):
    Hi!

    Interestingly whilst my project, neos (the universal compiler that can
    compile any programming language) is still a WIP I have already
    implemented functionality equivalent to what Tree-sitter provides:
    mapping between AST and original source code so you can do things such
    as syntax highlighting in a code editor.

    /Flibble


    Can we see an example?

    Yes.

    https://github.com/i42output/neos/blob/master/languages/neoscript.neos https://github.com/i42output/neos/blob/master/languages/examples/neoscript/ fibonacci.neo

    /Flibble

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From candycanearter07@21:1/5 to Mr Flibble on Wed Apr 9 23:30:03 2025
    XPost: comp.theory

    Mr Flibble <flibble@red-dwarf.jmc.corp> wrote at 19:56 this Wednesday (GMT):
    Hi!

    Interestingly whilst my project, neos (the universal compiler that can compile any programming language) is still a WIP I have already
    implemented functionality equivalent to what Tree-sitter provides: mapping between AST and original source code so you can do things such as syntax highlighting in a code editor.

    /Flibble


    Can we see an example?
    --
    user <candycane> is generated from /dev/urandom

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)