#parsers

2025-06-10

It's fun to play with #lexers and #parsers to find the best approach for the specific task, continuously morphing between concepts until the right combination of trade-offs is reached.

#SoftwareDevelopment #SoftwareDeveloperSoapbox

Andy Balaamandybalaam
2025-05-16
रञ्जित (Ranjit Mathew)rmathew
2025-05-14

Whatay wonderful for anyone interested in or 👌🏽:

“Writing That Changed How I Think About PL”, Max Bernstein (bernsteinbear.com/blog/pl-writ).

Via Lobsters: lobste.rs/s/v2zmv3/writing_cha

On HN: news.ycombinator.com/item?id=4

2025-03-09

This is why I'm partial to Parslet as my go-to parser library. No generating files, no filling in missing methods, just write your rules and go.
kschiess.github.io/parslet/

#ruby #parsers

2025-03-09

Why does racc require you to define the next_token method? That's not how the original bison+flex or yacc+lex tools work. Is there a Ruby equivalent of flex/lex?

#ruby #parsers

Paul HouleUP8
2024-12-24

💪 Thoughts on DuckDB's Grammar Patching Thing (... I dream of parser generators with the sharp edges filed off)

buttondown.com/jaffray/archive

2024-12-21

I am learning a heck lot writing a midi file parser in C++.

#cpp #parsers #compsci

2024-11-11

Last day of #RustLab2024. Looking forward to this talk by @woile!

#RustLang #RustLab #Florence #winnow #parsers

A screen showing the title slide "Cooking parsers with Winnie", in front of a yellow wall. Before the screen is a desk with two chairs and one of the organizers of RustLab in a yellow shirt.
Shane Svellershane@hachyderm.io
2024-10-06

Lossless syntax trees and resilient #parsers:

Say you have an incomplete source fragment, ie in #rustlang a let that has no RHS:

let a: Type =

and you want to wrap that arm of the syntax tree to indicate error.

Is it most helpful on the receiving side (such as when implementing LSP code or an interpreter) to have the resulting tree hierarchy as:

Statement > Error > MissingTerm
or
Error > Statement > MissingTerm
or
Statement > MissingTerm > Error

...where the Error is holding some context

2024-10-06

#hacktoberfest (hacktoberfest.com/) is a great way to start in contributing to #OpenSource projects.

If you know #PHP and are interested in working on the topic of #parsers, these two projects welcome new contributors:
- github.com/MyIntervals/PHP-CSS a CSS parser
- github.com/MyIntervals/emogrif a tool to inline CSS in HTML (mostly for emails)

(Boosts appreciated.)

रञ्जित (Ranjit Mathew)rmathew
2024-06-05

The best explanation 👌🏽 of LL & LR techniques for non-theorists that I’ve seen so far:

“LL and LR Parsing Demystified” [2013], Josh Haberman (blog.reverberate.org/2013/07/l).

On HN [2016]: news.ycombinator.com/item?id=1

2024-01-25

Trying to implement a custom Markdown parser when you know next-to-nothing about parsers is surprisingly difficult. I know that there's all sorts of language parsing tools out there (like lex and yacc), and I'm sure people who know how to build a C compiler probably feel like Markdown is a walk in the park, but for your average guy who just wants something that lets a human type text that a computer can figure out, it's a bit much.

Part of me is considering trying to create a general-purpose format that is designed to be easily machine-readable and parseable even if you aren't a parser writing genius. Another part of me is considering learning how to do parsing "for real". Unsure which part is going to win right now.

#markdown #parsers #compilers #c

CppConCppCon
2024-01-19

We have released a new CppCon 2023 Video!

Applicative: The Forgotten C++ Functional Pattern – Ben Deane – CppCon 2023
youtu.be/KDn28TZdKb4

CppConCppCon
2023-12-26

We have released a new CppCon 2023 Video!

A Fast, Compliant JSON Pull Parser for Writing Robust Applications – by @foonathan
youtu.be/_GrHKyUYyRc

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst