Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Regex higher IR library
#5
(Jun-05-2022, 03:12 PM)Gribouillis Wrote: The idea of building an order relation for the regular expressions looks creative. What are you going to do with this order relation?
Just for a bit of a fun (and also to use for another project) I felt like recreating the Rust logos crate to be able to create custom lexers. I know there exist already many python modules to do this I just felt recreating this would be fun.
Logos uses a priority system to determine the priority of the tokens that you defined, which includes parsing regexes into an AST to define a priority for them. I feel like making my python as close to logos as possible so I wanted to do that too, hence the reason to get an AST that is a bit easier to work with.
Reply


Messages In This Thread
Regex higher IR library - by DreamingInsanity - Jun-04-2022, 11:37 PM
RE: Regex higher IR library - by Gribouillis - Jun-05-2022, 05:46 AM
RE: Regex higher IR library - by DreamingInsanity - Jun-05-2022, 10:06 AM
RE: Regex higher IR library - by Gribouillis - Jun-05-2022, 03:12 PM
RE: Regex higher IR library - by DreamingInsanity - Jun-05-2022, 04:07 PM
RE: Regex higher IR library - by Gribouillis - Jun-05-2022, 06:21 PM
RE: Regex higher IR library - by DreamingInsanity - Jun-06-2022, 02:37 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Beginner Higher Lower Game wallytan 2 1,670 Sep-29-2022, 05:14 PM
Last Post: deanhystad
  finding the next higher representable floating point value Skaperen 0 1,985 Sep-13-2019, 11:16 PM
Last Post: Skaperen
  the next higher character Skaperen 13 5,039 Jun-07-2019, 01:44 PM
Last Post: heiner55
  How do I loop through a list and delete numerical elements that are 1 lower/higher? neko 4 4,355 Sep-05-2017, 02:25 PM
Last Post: ichabod801
  PyInstaller, how to create library folder instead of library.zip file ? harun2525 2 4,886 May-06-2017, 11:29 AM
Last Post: harun2525

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020