Personal tools
Document Actions

odra.9 prefix

by Paul McJones last modified 2019-05-20 16:52

PREFIXED PROLOG TO NORMAL NOTATION - CLAUSE ORDER IS NOT CHANGED . AUTOR: FELIKS KLUZNIAK.

*PREFIXED PROLOG TO NORMAL NOTATION - CLAUSE ORDER IS NOT CHANGED .
*
*AUTOR: FELIKS KLUZNIAK.
*
.

+PARENTH -FIND(#) -FIND(#) -IMPAS.
+PARENTH -PAR -LIGNE.
+FIND(*X) -LUB(*X) -/.
+FIND(*X) -FIND(*X).
+PAR -FIND(.) -CLAUSE(.,*NEXT) -NOMORE(*NEXT).
+PAR -PAR.
+NOMORE(#) -/(-(PAR)) -LIGNE.
* CLAUSE'S NEXT IS FIRST NON-BLANK AFTER LAST NIL0  .
+CLAUSE(.,*NEXT) -LU(2)
   -/ -LU(*X) -LITER(*X) -LU(*N) -CLAUSE(*N,*NEXT).
+CLAUSE(N,*NEXT) -LU(I)-LU(L)-LU(0)-ECRIT(.) -LIGNE -LUB(*NEXT) -/.
+CLAUSE(*A,*B) -SORM("ERROR FOUND BY CLAUSE ")
   -SORT(*A) -SORM(" & ") -SORT(*B) -STOP.
+LITER(-) -/ -LIT(-).
+LITER(+) -/ -LIT(+).
+LITER(*X) -SORM("ERROR FOUND BY LITERAL ") -ECRIT(*X) -STOP.
+LIT(*C) -ECRIT(*C) -LU(1) -/ -LU(*F) -PRED(*F).
+LIT(*C) -SORM("BAD N-ARITY OF ") -ECRIT(*C) -STOP.
* PRED IS GIVEN FIRST CHAR,STOPS ON LAST ARG'S LAST.
+PRED(*F) -CHIFFRE(*F) -/ -SORM("*") -ECRIT(*F).
+PRED(*F) -NAME(*F,*N) -ARGS(*N).
* NAME'S SECOND ARG IS N-ARITY .
+NAME(*C,*C) -CHIFFRE(*C) -/.
+NAME(*C,*N) -ECRIT(*C) -LU(*CH) -NAME(*CH,*N).
+ARGS(0) -/.
+ARGS(*N) -SORM("(") -ARG(*N) -SORM(")").
+ARG(*N) -LU(*C) -PRED(*C) -COMMA(*N).
+ARG(*N) -MOINS(*N,1,*M) -ARG(*M).
+COMMA(1) -/(-(ARG(*N))).
+COMMA(*N) -SORM(",") -IMPAS.
* END OF PARANT.


-PARENTH!


« December 2024 »
Su Mo Tu We Th Fr Sa
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31
 

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: