Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
5496 | leency | 1 | |
2 | #define __standard_h__ |
||
3 | |||
4 | |||
5 | #include "lispobject.h" |
||
6 | #include "lispenvironment.h" |
||
7 | #include "lisphash.h" |
||
8 | #include "lispatom.h" |
||
9 | #include "numbers.h" |
||
10 | |||
11 | |||
12 | class LispHashTable; |
||
13 | |||
14 | |||
15 | LispBoolean InternalIsString(LispString * aOriginal); |
||
16 | void InternalUnstringify(LispString& aResult, LispString * aOriginal); |
||
17 | void InternalStringify(LispString& aResult, LispString * aOriginal); |
||
18 | void InternalIntToAscii(LispChar * aTrg,LispInt aInt); |
||
19 | LispInt InternalAsciiToInt(LispString * aString); |
||
20 | LispBoolean IsNumber(const LispChar * ptr,LispBoolean aAllowFloat); |
||
21 | |||
22 | |||
23 | void InternalTail(LispPtr& aResult, LispPtr& aArg); |
||
24 | void InternalAssociate(LispPtr& aResult, LispPtr& aKey, |
||
25 | LispPtr& aAssociationList); |
||
26 | |||
27 | |||
28 | void InternalFlatCopy(LispPtr& aResult, LispPtr& aOriginal); |
||
29 | LispInt InternalListLength(LispPtr& aOriginal); |
||
30 | |||
31 | |||
32 | LispPtr& aExpression1, |
||
33 | LispPtr& aExpression2); |
||
34 | |||
35 | |||
36 | |||
37 | |||
38 | |||
39 | inline void InternalFalse(LispEnvironment& aEnvironment, LispPtr& aResult); |
||
40 | inline void InternalBoolean(LispEnvironment& aEnvironment, LispPtr& aResult, |
||
41 | LispBoolean aValue); |
||
42 | inline LispBoolean IsTrue(LispEnvironment& aEnvironment, LispPtr& aExpression); |
||
43 | inline LispBoolean IsFalse(LispEnvironment& aEnvironment, LispPtr& aExpression); |
||
44 | inline void InternalNot(LispPtr& aResult, LispEnvironment& aEnvironment, LispPtr& aExpression); |
||
45 | |||
46 | |||
47 | void InternalLoad(LispEnvironment& aEnvironment,LispString * aFileName); |
||
48 | void InternalUse(LispEnvironment& aEnvironment,LispString * aFileName); |
||
49 | void InternalApplyString(LispEnvironment& aEnvironment, LispPtr& aResult, |
||
50 | LispString * aOperator,LispPtr& aArgs); |
||
51 | void InternalApplyPure(LispPtr& oper,LispPtr& args2,LispPtr& aResult,LispEnvironment& aEnvironment); |
||
52 | |||
53 | |||
54 | LispChar * aString); |
||
55 | |||
56 | |||
57 | #define LIST(_c) LispSubList::New(_c) |
||
58 | class LispObjectAdder : public YacasBase |
||
59 | { |
||
60 | public: |
||
61 | LispObjectAdder(LispObject* aPtr) |
||
62 | : iPtr(aPtr) {}; |
||
63 | LispObject* iPtr; |
||
64 | }; |
||
65 | #define LA(_o) LispObjectAdder(_o) |
||
66 | |||
67 | |||
68 | |||
69 | |||
70 | void ParseExpression(LispPtr& aResult,LispChar * aString,LispEnvironment& aEnvironment); |
||
71 | |||
72 | |||
73 | LispEnvironment& aEnvironment); |
||
74 | |||
75 | |||
76 | limiting it to a maximum number of characters. If aMaxChars |
||
77 | is less than zero, the result is not truncated. |
||
78 | */ |
||
79 | void PrintExpression(LispString& aResult, LispPtr& aExpression, |
||
80 | LispEnvironment& aEnvironment, |
||
81 | LispInt aMaxChars); |
||
82 | |||
83 | |||
84 | |||
85 | |||
86 | |||
87 | |||
88 | |||
89 | |||
90 | |||
91 | |||
92 |