Registry / build-tool / oedipus-lex

oedipus-lex

JSON →
library2.6.3rbrubygemsunverified

A lexer generator that produces hand-written style lexers using StrScanner and multi-level case statements.

gem install oedipus_lex
INSTALL
IMPORT
SIG · OEDIPUS-LEX
O
oedipus-lex
build-toolrubyv2.6.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Oedipus
✓ require 'oedipus_lex'

Define and use a simple lexer

require 'oedipus_lex' class MyLexer < Oedipus::Lexer rule :/\d+/ => :NUMBER rule :/\s+/ => nil end lexer = MyLexer.new lexer.lex("123 456")
Debug
Known issues
breakingRegexps must be delimited with slashes, unlike Rexical
fix
Add slashes around all regex patterns when migrating from Rexical
affects: >= 2.0.0
Upgrade
Version history
2.6.3latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
22 hits · last 30 days
node
20
OpenAI (training)
1
Resources
oedipus-lex — gem install oedipus-lex · libregistry