Émilie Feral
e951140298
[poincare] Change method createLayout() to createLayout(DisplayMode)
...
Change-Id: Ifb1027d38b53a50a0ada80e11b68d44e72ac9099
2017-01-31 10:36:13 +01:00
Émilie Feral
93d272486f
Clean warnings
...
Change-Id: I79a3a97c5c118c9d6e1436e51b45cb51fee3c21f
2017-01-30 15:30:58 +01:00
Romain Goyet
5963345981
[poincare] NULL-termination and Integer parsing
...
Discard non-10 base handling for now
Change-Id: I487e85a169c7ae5780c83b0bcf3c40bd3daac0fe
2016-12-21 10:13:06 +01:00
Émilie Feral
a07a59efe9
[poincare] Factorise the method evaluate
...
Change-Id: Ief252568e8d232fc4606e8c86b5e3f9b4c076955
2016-12-09 11:01:39 +01:00
Émilie Feral
357f971120
[poincare] Change name: createEvaluation -> evaluate
...
Change-Id: I8f241541af0435c6ab4f7ba1f561f880c4e95ac0
2016-12-08 17:10:36 +01:00
Émilie Feral
0ce0995e0c
[poincare] add a method createEvaluation in all expressions
...
Change-Id: I72e78afcae2a931376108859a5615c227d364d74
2016-12-08 15:21:52 +01:00
Émilie Feral
720a20a9cb
[poincare] handle case 0 in integer layout
...
Change-Id: I178a543a342a38f80eb74341118c13d2e189f858
2016-11-04 11:13:47 +01:00
Romain Goyet
2e3b578eff
[Poincare] Update for C++ Kandinsky
...
Change-Id: Ib0d44841245a290c0395c43b2cde4c7ea69c17ca
2016-08-19 10:34:59 +02:00
Felix Raimundo
6f5cc68b75
Fix Integer approximation for 0.
...
Change-Id: Ib4bab6f4f776342bf6311d1e6f8b6d245d9a048a
2016-04-22 16:52:44 +02:00
Felix Raimundo
77f057de82
Add the const qualifier to Expression methods
...
Change-Id: Ic05828a91c89cb391e6d7c1d4a5220fad4aea5e7
2016-04-18 18:48:56 +02:00
Felix Raimundo
47f361a667
Make the addition public.
...
Change-Id: I9b277f0a959f36453215de7dbb98b8f8dad69544
2016-04-18 18:48:56 +02:00
Felix Raimundo
7a7df647f3
Fix the printing of integers.
...
Because yes, multiples of 10 would not print...
Change-Id: Id58305086d499eb091ea5612fedcc5ec6f25c415
2016-04-07 12:44:05 +02:00
Romain Goyet
de2f83e8bd
Poincare: Put the AST printing in its own file
...
Change-Id: I1793fa2057098f31a549faf6bf39e64c333b5b06
2016-04-01 15:02:31 +02:00
Felix Raimundo
ed2c4cfb59
First version of the simplifications.
...
Change-Id: Idbddb92b6bd098d6b862f5fc4abd741948e15194
2016-04-01 11:32:11 +02:00
Felix Raimundo
ebf03464fa
Fix warnings.
...
compareing an int to an unsigned value.
Change-Id: I718d83b594a0c7e05aacfde35251df0be66de687
2016-03-25 14:35:00 +01:00
Felix Raimundo
3710103f40
Change the layout creation.
...
The father now sets itself as teh father of its children.
ExpressionLayout do not know anything about expressions now.
Change-Id: I28954c78f3102eec056ebbc3c52ccd862a5ab8fd
2016-03-25 14:35:00 +01:00
Romain Goyet
b79e7483f4
Poincare: Adding SimplifyAdditionMerge
...
Change-Id: I6f922cce8178d5313a46d611e7ab166c52282127
2016-03-24 17:47:04 +01:00
Romain Goyet
0d7813dc7b
Poincare: Expressions can now be cloned
...
Change-Id: I5a291c56dd031ec5e7aa6fbfe09823807f1b0e3c
2016-03-24 13:35:16 +01:00
Romain Goyet
dfdaa54928
Poincare: Clean the Expression::Type
...
Change-Id: I3809a8b1b040314466554866555fb634c35156a5
2016-03-24 10:19:04 +01:00
Romain Goyet
d3b0841af6
Poincare: Add a simplifier
...
Change-Id: Iac53c9b7dda5cb284fe750bb84c92ce5d1fba497
2016-03-23 17:24:11 +01:00
Felix Raimundo
d84e139954
Remove some warnings.
...
Change-Id: I5a856edc3ebc7ccb352865d62b2b12cdfc8426ca
2016-03-22 18:39:59 +01:00
Felix Raimundo
5f86659bd3
Remove some dead code.
...
Change-Id: I62c0effa23db161f498b1a133ee6ab80e8e7d481
2016-03-22 18:39:59 +01:00
Felix Raimundo
b33eb99067
Adds the power and parentheses to the parser.
...
Also removes some dead code and adds buttons in order to have parentehses.
Change-Id: Iaf6d678f765bb6a1c3405818738c51661aa43e12
2016-03-18 13:00:17 +01:00
Romain Goyet
15d91052f2
[Poincare] Handle symbol/context
2015-11-18 22:31:21 +01:00
Romain Goyet
0a44218cdf
[poincare] use KDPointZero
2015-09-22 16:39:11 +02:00
Romain Goyet
010777db09
[poincare] use native_int_t when appropriate
2015-09-22 16:17:43 +02:00
Romain Goyet
71bae0c7cf
[poincare] Proper layout engine
2015-09-21 23:58:33 +02:00
Romain Goyet
7b7553cd1a
[poincare] Division
2015-09-21 17:57:50 +02:00
Romain Goyet
73052ed07f
[poincare] Integer addition and subtraction
2015-09-21 17:49:51 +02:00
Romain Goyet
7408bcc483
[poincare] relative integer comparison
2015-09-21 14:56:51 +02:00
Romain Goyet
4fb2236ab5
[poincare] Relative integer string parsing
2015-09-21 14:52:59 +02:00
Romain Goyet
9473d0d89e
[poincare] handle relative integer product
2015-09-21 14:49:54 +02:00
Romain Goyet
903d35701a
[poincare] Relative Integer
2015-09-21 14:40:00 +02:00
Romain Goyet
73de311edc
[poincare] integer comparison
2015-09-21 12:05:30 +02:00
Romain Goyet
fc08a651cc
[poincare] Separate the layout logic
2015-09-21 10:37:22 +02:00
Romain Goyet
629f6b3aa6
[poincare] Integer can now parse hex and binary numbers
2015-09-19 20:17:35 +02:00
Romain Goyet
98f6929b03
[poincare] integer memory is freed
2015-09-17 16:19:06 +02:00
Romain Goyet
1a88f2b392
[poincare] refactor Integer
2015-09-17 15:10:45 +02:00
Romain Goyet
98b3080062
[poincare] add const qualifier
2015-09-16 21:26:27 +02:00
Romain Goyet
e5f1bce863
[Poincare] Avoid re-fetching a variable
2015-09-16 19:14:44 +02:00
Romain Goyet
6aedfb66e3
[Poincare] Proper Integer approximation
2015-09-16 19:14:11 +02:00
Romain Goyet
003f6c4446
[Poincare] Correct Integer product
2015-09-16 19:08:57 +02:00
Romain Goyet
45d5acd277
Merge branch 'master' of prs.goyet.com:~/scm/calcos
2015-09-16 15:44:35 +02:00
Romain Goyet
8f4489aae7
[Poincare] Float approximation for integer
2015-09-16 15:44:23 +02:00
Romain Goyet
51e2d23180
[Poincare] Integer parsing!
2015-09-15 10:55:40 +02:00
Romain Goyet
7848bcc750
[Poincare] Don't count bits, count digits
2015-09-14 23:01:44 +02:00
Romain Goyet
9c2c160536
[Poincare] Start a product algorithm on Integer
2015-09-14 22:28:36 +02:00
Romain Goyet
d482fd3159
[Poincare] Proper computation of the number of bits
2015-09-14 22:24:50 +02:00
Romain Goyet
388f0ec954
[Poincare] First working BigInt addition!
2015-09-14 18:57:31 +02:00
Romain Goyet
df70a72c27
[Poincare] Add Expression::approximate
2015-09-07 18:25:57 +02:00