ragel Questions
2
I have 2 expression :
ident = alpha . (alnum|[._\-])*;
string = (printable1)+;
# Printable includes almost all Windows-1252 characters with glyphs.
main := ( ident % do_ident | string % do_string...
Dorkas asked 30/1, 2014 at 21:11
1
Solved
I am trying to convert a set of regular expression from Adblock Plus rules into an optimized function I could call from C++.
I was expecting to be able to use a lexer generator such as Ragel to do...
2
I'm working with Ragel to evaluate FSAs, and I want to embed a user action that runs whenever my machine finishes testing the input. I need this action to run regardless of whether or not the machi...
Marlinmarline asked 29/4, 2013 at 7:21
9
Solved
I am working on a small text editor project and want to add basic syntax highlighting for a couple of languages (Java, XML..just to name a few). As a learning experience I wanted to add one of the ...
3
Solved
Here is a starting point for a grammar:
%%{
machine xo;
char = "x" | "o";
group = "(" char* ")";
main := group;
}%%
It handles (xxxx(oo)()xx), for example. How do I extend it to allow neste...
3
Solved
I'm new to the world of compilers, and I recently heard about something called a parser generator. From what I (think) I've understood, parser generators take in a syntax file and output a source c...
Fiske asked 18/1, 2011 at 0:38
1
Solved
I've been working on a parser for simple template language. I'm using Ragel.
The requirements are modest. I'm trying to find [[tags]] that can be embedded anywhere in the input string.
I'm tryi...
3
Solved
I need to read and write octet streams to send over various networks to communicate with smart electric meters. There is an ANSI standard, ANSI C12.19, that describes the binary data format. While ...
1
© 2022 - 2024 — McMap. All rights reserved.