Skip to content

/dev/null

The black hole…

  • About Me
  • Amazon Wishlist

Tag: parser

Rust

Tree-Sitter Tutorial – Part #6

May 20, 2025May 20, 2025ambsLeave a Comment on Tree-Sitter Tutorial – Part #6
Tree-Sitter Tutorial – Part #6

As stated previously, Part #5 of this tutorial provides a brief overview of using Tree-Sitter from C#. This post continues from Part #4 and will add a Domain Object Model to the parser. It will not include many details specific to Tree-Sitter, as it will be more of a restructuring of our Rust code. Nevertheless, […]

Computer Science programming Rust

Tree-Sitter Tutorial – Part #4

April 21, 2025April 21, 2025ambsLeave a Comment on Tree-Sitter Tutorial – Part #4
Tree-Sitter Tutorial – Part #4

Continuing with Rust, in this part of the tutorial we will improve the grammar with support for a few new things. One will be the support of literals and regular expressions for terminal symbols, and the second will be the support for the Kleene closures. Grammar Literals The first changes we will perform are to […]

C Computer Science

Tree-Sitter Tutorial – Part #2

April 11, 2025April 14, 2025ambsLeave a Comment on Tree-Sitter Tutorial – Part #2
Tree-Sitter Tutorial – Part #2

In the last part of this tutorial we prepared the parser for a simple BNF syntax. In this part we will create a simple C tool that converts this parser syntax into tree-sitter JavaScript syntax. After installing the library, as specified above or compiling from the source code, get into the folder we created in […]

programming

Tree-Sitter Tutorial – Part #1

April 3, 2025April 3, 2025ambsLeave a Comment on Tree-Sitter Tutorial – Part #1
Tree-Sitter Tutorial – Part #1

As seen in previous posts, I’ve been using AntLR for my parsers. Nevertheless, I’ve been listening to discussions about the speed of Tree-Sitter parsers, and I decided to give it a try. While I learn how to use them, I will write a brief tutorial on the subject. Bear with me if you find any […]

All Rights Reserved.