. , .
Predicates
nondeterm Do_new (string, string, string)
Goal
Readln(St),concat(" ",St,Str), do_new(Str, "", Res),!.
Clauses
Do_new("", Str1, Str1):-write(Str1),nl.
Do_new(Str, Str1, Res):- fronttoken(Str,W,R),
frontchar(W, 'a', _),concat(Str1," ", Str2),
concat(Str2,W, Str3),!,do_new(R, Str3, Res);
fronttoken(Str,_,R),!,do_new(R, Str1, Res).
. .
.
, . fronttoken . frontchar . concat , , . ϳ Do_new .
, . fronttoken . ϳ Do_new .
, , , .
, , . , .
2.2.2 . . ϳ , ' . .
2.3
1. ϳ "" .
2. . ϳ .
3. . , "" "".
4. . .
5. . , .
6. . , .
7. . , , .
8. . , , ( ), . : 000. 0010 0.0010.
9. . , , , . , 123+ab+0.19731.1 123+ab+0.191.1.
10. . "" "", .
|
|
11. . : 32, 100, . , , .
12. . ϳ , .
13. . ϳ abc aba.
14. . , , . , .
15. . , , , '*'.
16. . , '' .
17. . , , , .
18. , . , , , , .
19. . , "then".
20. . "n" "on" .
21. , . .
22. . , , . , .
23. . . , "then" , "neht".
24. . , , .
25. . , grand.
2.4
:
2.4.1 ,
2.4.2
2.4.3
2.4.4
:
- ;
- ;
- .
2.5
2.5.1 ? ?
2.5.2 ? ? , ?
2.5.3 ? .
2.5.4 ?
2.5.5 ?
2.5.6 , ?
2.5.7 .
|
|
3 3
Dz ղί Ѳ
3.1
:
- ;
- , .
3.2
3.2.1 , . , 쳺 . .
Append , Append.