ML-KULeuven / problog

ProbLog is a Probabilistic Logic Programming Language for logic programs with probabilities.
https://dtai.cs.kuleuven.be/problog/
298 stars 34 forks source link

Support hexadecimal numbers #19

Closed XVilka closed 4 years ago

XVilka commented 4 years ago

So this would work

byte_alphanum(B, R) :-
    B > 0x2f, B < 0x3b, R = true.
XVilka commented 4 years ago

Is it possible to implement it? It is very annoying to convert every number just for the Problog, since the rest of interpreters work just fine.

VincentDerk commented 4 years ago

Unfortunately, me personally, I am very busy in the next couple of weeks so I won't be able to. We're happy to take pull requests.

anton3s commented 4 years ago

I've created a pull request which fixes this issue. It's running through the checks...

VincentDerk commented 4 years ago

Merged it, thanks!