Skip to content

/dev/null

The black hole…

  • Amazon Wishlist

Category: computers

C# Computer Science programming

Tree-Sitter Tutorial – Part #5

April 24, 2025April 24, 2025ambsLeave a Comment on Tree-Sitter Tutorial – Part #5
Tree-Sitter Tutorial – Part #5

I will get back to Rust to investigate more Tree-Sitter features, like cursors. But for my job, I might need to use Tree-Sitter from C#. So, I decided to write a post on how to do that, this time, from Windows. In the future, maybe I can look into how to do that with dotnet […]

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 […]

Computer Science Rust

Tree-Sitter Tutorial – Part #3

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

C is a nice programming language, I enjoy playing with. But we need to accept that, unless we use libraries, writing code from scratch takes a lot of time. With that in mind, and given that I am also trying to learn Rust, I decided to write this post, very similar to the second part […]

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 […]

C# Computer Science programming

Down Translate XML in C#

August 24, 2024August 24, 2024ambsLeave a Comment on Down Translate XML in C#

For years, my preferred approach for processing XML documents has been using a down-translator processor: a set of methods that start processing the DOM from the leaves and compute values that are propagated to their parents, and so on, until it reaches the tree root node. If this seems strange, probably it will get better […]

programming unix

High-Order Makefile

June 16, 2024June 17, 2024ambsLeave a Comment on High-Order Makefile

Yesterday I was trying to automate a process using a Makefile. At first, I was mostly using Bash inside the Makefile to iterate over a lot of files and perform operations. Unfortunately, that approach does not allow us to use multiple parallel jobs, taking advantage of the multi-processor available in the machine. I decided to […]

Computer Science programming

Why you should take care of Rider’s suggestions

February 12, 2024ambsLeave a Comment on Why you should take care of Rider’s suggestions
Why you should take care of Rider’s suggestions

I must say I am a Rider addict. Or, to be fair, a JetBrains IDE addict. I am still expecting the Dromedary IDE for Perl. Jokes aside, I use Rider and PyCharm often. They are my default IDE for C# and Python. I also love to use the code refactoring suggestions. Not just because they […]

Computer Science programming

ANTLR Tutorial – Part X

February 10, 2024ambsLeave a Comment on ANTLR Tutorial – Part X
ANTLR Tutorial – Part X

Everything comes to an end, and this will be the last part of this tutorial. Or at least, the last planned part of this tutorial. In this part, we will implement the support to functions. But, before we start, I need to correct a mistake in part IV of this tutorial, when the SVG output […]

Computer Science programming

ANTLR Tutorial – Part IX

December 25, 2023December 25, 2023ambsLeave a Comment on ANTLR Tutorial – Part IX

For this issue, I do not bring a lot of news. With Christmas and other requests, I had little time to continue this tutorial. But, having someone to test the previous issues of this tutorial (thanks, Vicente), we found out that the custom Build Task developed in the first parts of this tutorial has problems […]

Posts navigation

Older posts
All Rights Reserved.