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...
Deboer asked 7/4, 2014 at 23:59

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 ...
Mcglothlin asked 4/3, 2009 at 18:23

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...
Parker asked 18/8, 2012 at 3:50

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...
Marlee asked 26/7, 2010 at 1:24

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 ...
Jannelle asked 5/2, 2009 at 17:47
1

© 2022 - 2024 — McMap. All rights reserved.