Displaying 20 results from an estimated 41 matches for "ragel".
Did you mean:
nagel
2009 Jun 07
1
Close to a 4.2 release; experimenting with Ragel alternatives
Hi Jason !
Hmmm, this is good and bad news:
Good: ruby hooks means I could use a single pass to parse textile
customizations in zena instead of running two parsers: nice.
Bad: I have just switched to ragel for QueryBuilder to parse pseudo
sql and I fear your shortcomings (if that''s an english phrase).
Could you describe more precisely what you are missing with ragel ?
I''m parsing about anything I want with this thing but maybe I''m too
dumb to see the walls I''m run...
2007 Apr 03
2
[OT] Ragel and FSM tutorials
This is off-topic.
I''m hoping someone on this list can point me towards more general
information on finite state machines, their definition, how to build
them, determining when to apply them, etc. I read Zed''s blog entry
from way back when covering Ragel [1] but he hasn''t followed it up
and there aren''t many pointers to external information.
I''ve googled around and found a reasonable amount of information on
Ragel, but I''m not so interested in knowing how to use that
particular tool as I am in learning abo...
2008 Mar 15
8
Now what?
> $ rake test
> /usr/local/bin/ruby -Ilib:test "/usr/local/lib/ruby/gems/1.8/gems/
> rake-0.7.3/lib/rake/rake_test_loader.rb" "test/test_formatters.rb"
> "test/test_parser.rb"
> Loaded suite /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/
> rake_test_loader
> Started
>
2008 Feb 19
0
parser files not compatible with ragel 6.0
I''m getting errors running the ragel task - unrecognized write command
"eof". I''m on OS X with ragel version 6.0 from MacPorts. It appears 6.0
has some breaking changes. Has anyone tried ragel 6.0 with the current
*.rl files?
--
Posted via http://www.ruby-forum.com/.
2011 Jan 13
9
spurious <li> generated when list followed by 3
...;three</li>\n</ul>\n<li>"
# note extra trailing <li> outside <ul>
A colleague generated a pull request with a new rspec test that exposes this bug:
https://github.com/jgarber/redcloth/pull/1
I checked and the bug is present on master.
I just took a look at the ragel code but it''s been quite a while since I''ve used ragel and it''s not quite as easy to parse as
Ruby ;-)
Seems like li_open in lib/redcloth/formatters/html.rb is being called incorrectly when the thrid newline is parsed.
Here are the locations in the code where li_open i...
2007 Sep 29
0
Ragel memory usage explodes
Rev. 190
Ragel 5.7
The following command had already eaten 1.5 GB RAM when I killed it:
ragel superredcloth_inline.rl | rlcodegen -G2 -o superredcloth_inline.c
--
Posted via http://www.ruby-forum.com/.
2006 Sep 25
5
HTTP Parser (Regal)
Hi I was interested to see how Mongrel uses Lex/Yacc to parse the HTTP
requests using a Regal generated parser. I downloaded the source but do
not see the lex and yacc files...
2007 Jul 16
6
Advice regarding extending RedCloth
Hello,
I am in a bit of a bind. I need to reliably parse mediawiki markup to
html, and the only parser that I can find (mediacloth) has a lot to be
desired, so I would like to extend something that works and parse
mediawiki markup. My question to this list is should I start working
on RedCloth or SuperRedCloth or is there a difference as far as
extending them? Also does anyone know of a write up
2007 Dec 11
2
Build issues on Leopard
Hello,
I''m having some issues building r190 on Leopard (10.5.1):
$ rake
(in /Users/johan/temp/superredcloth)
ragel superredcloth_scan.rl | rlgen-cd -G2 -o superredcloth_scan.c
ragel superredcloth_inline.rl | rlgen-cd -G2 -o superredcloth_inline.c
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
extconf.rb
checking for main() in -lc... yes
creating Makefile
make
gcc -I. -I.
-I/System/Library/F...
2008 Mar 23
1
redcloth gem ragel code doesn''t build in jruby
I tried to install RedCloth-3.274 in jruby (trunk) but the install
failed when RedCloth tried to build the C code using mkmf:
I forget whether SuperRedcloth ever did build in JRuby??
I know Hpricot (which also uses ragel which can compile to Java code)
works in JRuby -- with the patch here:
https://code.whytheluckystiff.net/hpricot/ticket/131)
I might be confusing the two ...
FYI: If you are on a Mac or Linux system the script I pasted here is
a very easy way to get a trunk JRuby install with it''s...
2008 Apr 24
4
Pure Ruby HTTP parser
Before anything else, let me state this: Of course it''s going to be
PAINFULLY slow on MRI. That''s not the point :)
I thought I''d try out writing out a Ruby version of the parser for the
purposes of Rubinius. For those of you who aren''t aware, Ragel supports a
goto-driven FSM on Rubinius by injecting assembly directly, and Rubinus head
honcho guy Evan Phoenix is working on a patch for Ragel to update it to the
new compiler semantics. So really, there is a purpose for trying this out.
Anyway, here''s my initial hack. It''s na...
2007 Sep 29
1
ragel version detection in Rakefile is broken
Version 5.7 is lower than 5.18, the Rakefile fails to detect that. Patch
attached.
Attachments:
http://www.ruby-forum.com/attachment/471/Rakefile.patch
--
Posted via http://www.ruby-forum.com/.
2007 May 08
2
Extending SuperRedCloth
...th plainclothed RedCloth, but I can''t
seem to override any of the methods in SuperRedCloth. Here''s a sample:
http://pastie.textmate.org/59859
I should see a string of C''s for the copyright symbol, but I still see
the HTML escape.
Will I need to get into the guts of the Ragel scanner to make it do
what I want, or am I missing something that can be done in Ruby?
Thanks,
Geoffrey Grosenbach
boss at topfunky.com
........................
Blog | http://nubyonrails.com
Podcast | http://podcast.rubyonrails.com
Screencast | http://peepcode.com
2008 Mar 10
3
Only 5 tests out of 376 currently failing!
...lain and submit a patch.
2.) Leave footnotes with simple ids (no generated unique ids)
3.) Leave notextile tag handling as it was in RedCloth and is in SRC
4.) Stick with SRC''s smarter handling of block tags in a paragraph
Note: If you try compiling SRC trunk, you''ll need to have Ragel newer
than 6.0 (i.e. you''ll need to check out the trunk). SRC uses leaving
actions in scanners, which will be released in Ragel 6.1.
Jason
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/redcloth-upwards/attachments/2008...
2011 May 27
2
Can't install RedCloth gem, fails to compile
...e/ruby-1.9.1/ruby/backward
- -I/opt/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I. -fPIC -O3 -ggdb
- -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith
- -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -fPIC
- -O0 -Wall -Werror -o redcloth_inline.o -c redcloth_inline.c
ragel/redcloth_inline.c.rl: In function ?red_block?:
ragel/redcloth_inline.c.rl:99:9: error: variable ?attr_regs? set but not
used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make: *** [redcloth_inline.o] Error 1
Gem files will remain installed in
/opt/rubies/ruby-1.9.2...
2007 Dec 11
54
1.9
Hey so,
People are asking about Mongrel Ruby 1.9 compatibility. Isn''t the
point of 1.9 for library developers to have time to get ready for 2.0?
It''s not like 1.9 is a production release.
Evan
--
Evan Weaver
Cloudburst, LLC
2007 Sep 22
2
http helpers c extension
...o be { ''q[a]'' => ''b'' }. Instead the C
extension mimic''s Merb''s behavior, creating nested hashes.
I think mongrel should change the behavior of it''s query_parse
function and use a C implementation. HttpHelpers.query_parse also uses
a ragel state machine, so it shouldn''t be increadably hard to put this
query_parse directly into http11.
Is there a development branch of mongrel? What should I patch against?
What do people feel about how query_parse should behave? Should it
happen automatically as Mongrel parses the rest of th...
2006 Oct 31
5
mongrel parser for server response
I''m taking a stab at creating a parser to parse the server response
using the mongrel parser as a base. Never having used a parser like
Ragel before in my life, I''d like some input on the following for
parsing an http server response. This is part of my modified version
of http11_parser.rl. In particular what would be better than using
''any'' to match the status text?
http_number = (digit+ "." dig...
2008 Jun 03
9
clients hang on large PUTs to Mongrel::HttpHandler-based web service
...irectory
and, somewhat later, from the mongrel process)
I''m using mongrel 1.1.4, and as far as clients go, I''ve tried curl and
a java-based application using the jakarta commons http client
software - same issue.
I''m wondering if this is a simple 32-bit int issue in the ragel-generated
code?
Any advice on how to approach debugging/fixing this would be
appreciated - this is very repeatable.
Work-arounds would be met with almost equal glee.
Thanks,
-Randy Fischer
2008 Jun 01
3
rbx gem
Hello. Some time ago I committed a Rubinius assembly-based HTTP parser
generated from Ragel to the Rubinius git repository. Yesterday I made a
Mongrel gem which installs and works on Rubinius. This basically involved
commenting out anything to do with fastthread or the http11 C extension.
If there''s interest in releasing a Rubinius-targeted gem, I can make changes
to the Rakef...