Problem I wrote a Perl 6 grammar to parse a C++ function. My final goal would be to parse an […]
Tag: lexical-analysis
A simple regex based lexer
Problem Recently I’ve been interested in language design and text processing. And a common program needed in both of those […]
Basic Equation Tokenizer
Problem Recently I’ve been doing some experimenting with RPN and the shunting-yard algorithm, in order to test these systems more […]
Optimize lexer/parser bottleneck in C++
Problem I am writing a parser for a custom mesh format for fluid dynamics simulation library, the mesh file contains […]
Transform poor CSS into a more beatiful form in Dart
Problem I have this script that opens a file containing (possibly) bad CSS, lexes the content of it and creates […]
Lexer for Apache logs in Python
Problem I recently learned Python using the book by Mark Summerfeld and I am now doing a few katas of […]
Function to parse VB.NET Like pattern
Problem VB.NET has a Like operator with a paradigm similar to the standard SQL LIKE expression (SQL Server, SQLite, MySQL), […]
Simple tokenizer v1 – reading char by char
Problem I was feeling like writing a new Uri parser. The previous one was too limited and wasn’t able to […]