Flexible Bible Reference Parser
c
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Daniel 5cbce4054a Forget the bug as it was deleted. Then remember the bug, 1 line. That only ytook 2 hours. 2 days ago
.gitignore Code cleanup 3 months ago
LICENSE Update MIT license 2 months ago
README.md Update 'README.md' 3 months ago
fbrp.c Forget the bug as it was deleted. Then remember the bug, 1 line. That only ytook 2 hours. 2 days ago
fbrp.h Fix parsing bug on line feed char (10), and fix bug where last char type is broken 1 month ago
reference.h Small bug fixes and mainance 2 months ago
test.c Forget the bug as it was deleted. Then remember the bug, 1 line. That only ytook 2 hours. 2 days ago

README.md

FBREP

“Flexible Bible REference Parser”

Features

  • Pure C99
  • No Regex or any string manipulation libraries
  • Small and fast
  • One C file

Can Parse:

“John 3 16”
“2 John 3 16-17”
“2 Kings 1, 3-5:2-4, 3-6, 1-2”

Cannot Parse:

By design, it cannot parse references like:
“John 3 16, John 3 17”
“John 3, Hebrews 4”

Testing:

gcc test.c fbrp.c && ./a.out