flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
rugxulo
How about Russ Cox's Implementing Regular Expressions? I've not studied this at all, but I vaguely remember that Kernighan had some simple regex code for teaching.
|
|||
![]() |
|
kerr
rugxulo wrote: How about Russ Cox's Implementing Regular Expressions? I've not studied this at all, but I vaguely remember that Kernighan had some simple regex code for teaching. I've seen this before. _________________ I hope we will be good friends. |
|||
![]() |
|
pelaillo
The lua pattern matching is a subset of a regular expression parser and is a lot simpler.
Just download the lua source and open the file src/lstrlib.c. The functions for pattern matching are all grouped together. It is easy to understand and well commented. Once you grasp the general idea, you are ready to move onto PCRE sources. |
|||
![]() |
|
kerr
pelaillo wrote: The lua pattern matching is a subset of a regular expression parser and is a lot simpler. thank you , but i think i need JavaScript Regexp grammar. _________________ I hope we will be good friends. |
|||
![]() |
|
pelaillo
Javascript Regexp grammar is like PCRE so all the complexity is back.
Mozilla implementation is in C++: SpiderMonkey |
|||
![]() |
|
kerr
pelaillo wrote: Javascript Regexp grammar is like PCRE so all the complexity is back. Yes , So I want to make a small Regexp for C language text processing. "Spidermokey" Not suitable for C language . _________________ I hope we will be good friends. |
|||
![]() |
|
pelaillo
So, this is what you need: https://github.com/kokke/tiny-regex-c/blob/master/re.c
|
|||
![]() |
|
kerr
pelaillo wrote: So, this is what you need: https://github.com/kokke/tiny-regex-c/blob/master/re.c thank you ! I aiso have a copy of this document , but i don't know how to use error reporting in C language warning: unknown escape sequence: '\w' _________________ I hope we will be good friends. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.