Flexible Bible Reference Parser
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
Daniel cb81d33fa2 Documentation 1 semana atrás
.gitignore Code cleanup 9 meses atrás
LICENSE Update MIT license 9 meses atrás
README.md Documentation 1 semana atrás
fbrp.c Documentation 1 semana atrás
fbrp.h Documentation 1 semana atrás
test.c more small changes 3 meses atrás

README.md

FBRP

“Flexible Bible Reference Parser”

Features

  • No standard C headers used
  • Tiny and flexible
  • One C file, one header file, no complex build system needed.
  • C99

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”
  • “John 3 16, KJV”

Testing:

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

How it works:

Like a compiler, it parses the string into a tokens.
Then, it uses that to run through each token and figure out
exactly what they all mean.
There is currently no algorithm specification, but feel free to
ask if you need any clarification.