jan-Lope / Toki_Pona-Parser

Toki Pona is a constructed, minimal language. This parser based on swi-prolog and definite clause grammars (dcg) and supports spelling, grammar check and ambiguity check of Toki Pona sentences.
GNU General Public License v3.0
48 stars 4 forks source link

Input/Output loop #6

Closed heuchi closed 7 years ago

heuchi commented 7 years ago

Enter io loop upon start, so the user does not have to type "check_grammar(P)." for every single line.

This needed a check, if compilation was going on. We must not run the io loop when compiling otherwise the compilation would not terminate. I did this by checking for the '--stand-alone' flag. If the flag has been used to call swipl, the loop is not started.