My Profile Photo

y-code


Blog about things I am mostly interested in code: functional programming, parsing grammars, compilers


  1. Capturing Positions in parboiled2

    It is a common task to track positions of recognized AST nodes. parboiled2 has no built-in facilities to do that. The reason is that different applications have different needs with regard to position tracking. Still, there are ways to capture positions. …


  2. parboiled2 Custom Rules

    There are use cases when developing custom low-level DSL rules might be very effective. It is possible without changing source code of parboiled2. And requirements to achive that are as follows: …


  3. parboiled2: Interactive Parsing

    Sometimes it is good to use facilities to rapid parboiled2 parsers prototyping right in the console. Let’s use sbt of version 0.13.8: …


  4. opTreePF Function

    In previous post was told how Parser works under the hood. Summarizing, rule is a macro that replaces AST of rule body with another code. …


  5. Scala Days 2014 Talk

    If you have been ever interested in how parboiled2 works so fast, “Meet parboiled2 – A Macro-Based PEG Parsers Generator” presentation would definetely shed the light. …


  6. Jetpack-to-CUDA

    The article was originally posted at Mozilla Labs blog in January, 2010. Mozilla Labs doesn’t store original content of archived articles, so I published it here below as it was back in year 2010. …