Parsing FriCAS/Axiom codeThere are four possible forms of parsed output. Click + at the top right of the window to expand the SPAD compilere output to show the parser output in the following examples: (+) help links subscribe changes refresh edit fricas )boot $RawParseOnly := true spad )abbrev package PASCAL Pascal
Pascal : with ( make_pascal : Integer -> Matrix(Integer) )
== add
make_pascal(N : Integer) : Matrix(Integer) ==
-- coerce here to NonNegativeInteger because this is what
-- 'zero' requires
nn := N::NonNegativeInteger
tab := zero(nn,
spad Compiling FriCAS source code from file
/var/lib/zope2.10/instance/axiom-wiki/var/LatexWiki/1379180095272779836-25px002.spad
using old system compiler.
PASCAL abbreviates package Pascal
(==
(|:| |Pascal|
(|with|
(CATEGORY
(|Signature| |make_pascal| (-> |Integer| (|Matrix| |Integer|)) NIL))))
(|add|
(== (|:| (|make_pascal| (|:| N |Integer|)) (|Matrix| |Integer|))
(|;|
(|;|
(|;|
(|;|
(|;| (|:=| |nn| (|::| N |NonNegativeInteger|))
(|:=| |tab| ((|Sel| (|Matrix| |Integer|) |zero|) (|,fricas )boot $RawParseOnly := true spad )abbrev package PASCAL Pascal
Pascal : with ( make_pascal : Integer -> Matrix(Integer) )
== add
make_pascal(N : Integer) : Matrix(Integer) ==
-- coerce here to NonNegativeInteger because this is what
-- 'zero' requires
nn := N::NonNegativeInteger
tab := zero(nn,
spad Compiling FriCAS source code from file
/var/lib/zope2.10/instance/axiom-wiki/var/LatexWiki/1379180095272779836-25px004.spad
using old system compiler.
PASCAL abbreviates package Pascal
(==
(|:| |Pascal|
(|with|
(CATEGORY
(|Signature| |make_pascal| (-> |Integer| (|Matrix| |Integer|)) NIL))))
(|add|
(== (|:| (|make_pascal| (|:| N |Integer|)) (|Matrix| |Integer|))
(|;|
(|;|
(|;|
(|;|
(|;| (|:=| |nn| (|::| N |NonNegativeInteger|))
(|:=| |tab| ((|Sel| (|Matrix| |Integer|) |zero|) (|,fricas )boot $FlatParseOnly := true spad )abbrev package PASCAL Pascal
Pascal : with ( make_pascal : Integer -> Matrix(Integer) )
== add
make_pascal(N : Integer) : Matrix(Integer) ==
-- coerce here to NonNegativeInteger because this is what
-- 'zero' requires
nn := N::NonNegativeInteger
tab := zero(nn,
spad Compiling FriCAS source code from file
/var/lib/zope2.10/instance/axiom-wiki/var/LatexWiki/1379180095272779836-25px006.spad
using old system compiler.
PASCAL abbreviates package Pascal
(==
(|:| |Pascal|
(|with|
(CATEGORY
(|Signature| |make_pascal| (-> |Integer| (|Matrix| |Integer|)) NIL))))
(|add|
(== (|:| (|make_pascal| (|:| N |Integer|)) (|Matrix| |Integer|))
(|;|
(|;|
(|;|
(|;|
(|;| (|:=| |nn| (|::| N |NonNegativeInteger|))
(|:=| |tab| ((|Sel| (|Matrix| |Integer|) |zero|) (|,fricas )boot $PostTranOnly := true spad )abbrev package PASCAL Pascal
Pascal : with ( make_pascal : Integer -> Matrix(Integer) )
== add
make_pascal(N : Integer) : Matrix(Integer) ==
-- coerce here to NonNegativeInteger because this is what
-- 'zero' requires
nn := N::NonNegativeInteger
tab := zero(nn,
spad Compiling FriCAS source code from file
/var/lib/zope2.10/instance/axiom-wiki/var/LatexWiki/1379180095272779836-25px008.spad
using old system compiler.
PASCAL abbreviates package Pascal
(==
(|:| |Pascal|
(|with|
(CATEGORY
(|Signature| |make_pascal| (-> |Integer| (|Matrix| |Integer|)) NIL))))
(|add|
(== (|:| (|make_pascal| (|:| N |Integer|)) (|Matrix| |Integer|))
(|;|
(|;|
(|;|
(|;|
(|;| (|:=| |nn| (|::| N |NonNegativeInteger|))
(|:=| |tab| ((|Sel| (|Matrix| |Integer|) |zero|) (|,fricas )boot $PrintOnly := true spad )abbrev package PASCAL Pascal
Pascal : with ( make_pascal : Integer -> Matrix(Integer) )
== add
make_pascal(N : Integer) : Matrix(Integer) ==
-- coerce here to NonNegativeInteger because this is what
-- 'zero' requires
nn := N::NonNegativeInteger
tab := zero(nn,
spad Compiling FriCAS source code from file
/var/lib/zope2.10/instance/axiom-wiki/var/LatexWiki/1379180095272779836-25px010.spad
using old system compiler.
PASCAL abbreviates package Pascal
(==
(|:| |Pascal|
(|with|
(CATEGORY
(|Signature| |make_pascal| (-> |Integer| (|Matrix| |Integer|)) NIL))))
(|add|
(== (|:| (|make_pascal| (|:| N |Integer|)) (|Matrix| |Integer|))
(|;|
(|;|
(|;|
(|;|
(|;| (|:=| |nn| (|::| N |NonNegativeInteger|))
(|:=| |tab| ((|Sel| (|Matrix| |Integer|) |zero|) (|,From: Waldek Hebisch Date: 16 March 2014 01:13 Subject: Re: [fricas-devel] Parsing FriCAS/Axiom code To: fricas-devel@googlegroups.com |