• Wincent
    Menu
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search

Perform manual lookahead for H1_END and friends (wikitext, c461466)

Created 2/2/2008, updated 3/5/2024
  • snippets

Ragel is much closer to the metal than ANTLR; in order to check if we've found the last token before a newline or the end-of-file we have to do manually lookahead using pointers.

Signed-off-by: Greg Hurrell <greg@hurrell.net>

← Add URI matching rule (wikitext, e956ebb)
Many more token matches (wikitext, af622ee) →

All snippets

Site
  • About
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search
External
  • GitHub
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
Colophon

Made by Greg Hurrell with Rust (with help from Git and Neovim).