Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.

AnFunctionArray/cparser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C Parser with PCRE2

Since no one ever has written a C parser the easy way (AKA with RegEx) I decided to do it - no hard algorithmic recursions - just plain Regex with measly one callout function that only fetch and displays named groups/diagnostics.

Obviously there were some challenges - for example the first one was distinguishing between a random sequence of text and an terminated escape sequence.

Currently the last challenge I was faced with was capturing/triggering the callbacks for right-to-left operators in the right order. I have a generic method for this now, for a single operator but it must be extended for more complex cases.

About

c grammar parser with the help of pcre2

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published