![]() Please see:įrom the other hand, if I assume that you want to make a calculator to learn Prolog, I would advise to find a better goal. Such calculators are possible just because the imperative interpretive languages can parse/evaluate strings containing expressions in the same language, like JavaScript Eval. For example, take a look at my JavaScript calculator: Who need them? Anyone can easily make a decent expression-oriented calculator with any non-trivial scripting/interpretive language, because they have expression evaluators, which just few lines of code. Generally, making a traditionally-looking calculator with buttons is a popular but very poor model for learning programming. ![]() Please see:Įven if you use Prolog implementation with enforced (I would say, "artificially enforced") imperative feature, notably Object-Oriented Visual Prolog, formerly Borland Turbo Prolog, it would not match with several much more suitable languages. This is a logic programming language, strongly declarative, with notoriously weak imperative semantics. If you want a good "regular" (numeric) calculator, Prolog would make little to no sense. Likewise, I would not advise you to waste your time on it. ![]() I don't think you can find any good tutorial on this combination of topics, because I fail to imagine a reasonable knowledgeable person who would take this pointless task. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |