Closed ghost closed 11 years ago
Hello
You're right, it's not a bug : to run the console without any third-party, you have to type "php console.php".
The TrismegisteWamBundle class is a component for symfony2 if you use it.
Since it is not documented, I will add a documentation for that. My bad.
Thanks for pointing out this problem.
Florent
I just added a documentation with the file HowToUse.md in root directory.
I'll appreciate any feedback.
Something was messed up with my PHP installation, I've got console working wonderfully now!
Out of curosity, what features of Prolog are supported? In particular, do you have findall or forall? Can I pass predicates as parameters?
Thanks!
Hello,
Regarding features, I have to cut it down to maintain readability and performance. You can pass predicate as parameter, example :
not(X) :- call(X), !, fail.
not(X).
There are some metalogic like :
but no findall or bagof, etc... Since it is a embedded DSL in PHP, I don't think it is really usefull and I would have to break some optimizations in the WAM compiler.
Probably not a bug, since I'm probably just doing something wrong. I'm trying to run the WAMBundle from the command line, but I get the following error:
-bash-3.2$ php TrismegisteWamBundle.php PHP Parse error: syntax error, unexpected T_STRING in /joey/wam/TrismegisteWamBundle.php on line 3
Do I have to modify my folder structure? I just download the zip from Github.
Thanks!