Commit Graph

263 Commits

Author SHA1 Message Date
Romain Goyet
35228e83af Define and use HOSTCC
Change-Id: If38c488233007e86c2e1e999861836a0ffbbf1e8
2016-03-23 12:35:25 +01:00
Felix Raimundo
80ad6e606b Removed all warnings, now in Werror
Change-Id: I02dbd9fef2c1b5d6aba4ea713f1e1ea305b389bf
2016-03-22 18:56:00 +01:00
Felix Raimundo
d84e139954 Remove some warnings.
Change-Id: I5a856edc3ebc7ccb352865d62b2b12cdfc8426ca
2016-03-22 18:39:59 +01:00
Felix Raimundo
2ee147a48c Remove dead code in Makefiles
Change-Id: I57363da89a49443be7fad8f687299393bc0f3a82
2016-03-22 18:39:59 +01:00
Felix Raimundo
605dd9f372 Add memory_map for simulator.
Also use clang for the simulator building.

Change-Id: I87f5b938d9066375fbfabfdcdd3c5218c9790bb0
2016-03-22 18:39:59 +01:00
Felix Raimundo
9f9d05e822 Add the test output to the .gitignore
Change-Id: I8c7e6e277b05a0fd8ea305400818494637fb3cf1
2016-03-22 18:39:59 +01:00
Felix Raimundo
1f9b440182 Added some basic tests for the AST members.
Change-Id: I9a1f297fb72a57e9b58e3951c22066134c8da9ea
2016-03-22 18:39:59 +01:00
Felix Raimundo
3c514a78e0 Change Substraction to Subtraction.
Only changed the files name last time.

Change-Id: I85a809f9ea349e1bec771c61a18d4b5e9b491fdc
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
fcca8e77f1 Add a test for products.
Change-Id: I479f4fa49bca62dd1d558c745a3b43f9ab55a72a
2016-03-22 18:39:59 +01:00
Felix Raimundo
a5f01b35af Fix integer test compilation.
Change-Id: Icf8f4a6f88f6ba8c31f51f3d37dca334faad94a6
2016-03-22 18:39:59 +01:00
Felix Raimundo
45b0ce8256 Add a cursor to the input.
Change-Id: I3e1467b5d21c87f095ecaaeb27becddaef0e1370
2016-03-22 18:39:59 +01:00
Felix Raimundo
2778ccea11 Use the same macro for the screen size.
The screen size used to be defined by the framebuffer size, this was weird,
the creen size can be defined in the makefile if needed (in order to have different one for
different targets)

Change-Id: Ie294fba5f6cf5e942b4b35847ae8ccd18d3ddf85
2016-03-22 18:39:59 +01:00
Felix Raimundo
16b650c5d5 Add left and righ arrows to move in the expression
Change-Id: Icf58335c9a78a97bdbed0da5d01f715dc11757d2
2016-03-22 18:39:59 +01:00
Felix Raimundo
4e9c33de2d Put the keys on the simulator.
NOTE: I messed up a merge so this si a bad commit.
Change-Id: I80c9bc3f9dd8b1d24069eb0cc87ce7fe15368071
2016-03-22 18:39:59 +01:00
Félix Raimundo
5c82826a34 Merge "Small hack to get keys on the simulator." 2016-03-22 18:02:27 +01:00
Felix Raimundo
3cf9f3ebcb Small hack to get keys on the simulator.
NOTE: this is really hacky and should be improved as soon as possible,
but working zithout it is just to big a pain.

Change-Id: I01e322fa5f653f04e9fdf6b16b4b9fe023a4fe93
2016-03-21 18:30:01 +01:00
Romain Goyet
737d878c1e Build on Bison 3.0.4.
This will be the reference version from now on. Note that the error was
about a missing declaration of yyscan_t, which we really don't need to
care about, and that we can simply replace by "void *".

Change-Id: I2294a8cc8bcb4a426019a5ebc6cf83b28d4bae1a
2016-03-20 19:16:06 +01:00
Romain Goyet
8e067f3f52 Fix a typo in the Bison grammar
Change-Id: I854b6adefca4518108a4678557c4d7f91bdaea40
2016-03-20 10:21:51 +01:00
Felix Raimundo
eed53079ca Add EOF to stdio.h
Change-Id: I94e2b93bbfe50fd8daaf0ad5f8c2447c0d6fbef4
2016-03-18 18:55:25 +01:00
Romain Goyet
23bd7048b4 Merge "Add associativity rules to the lexer" 2016-03-18 17:15:59 +01:00
Romain Goyet
3c795a8763 Fix the guardian
Change-Id: I14af6937fecfbe90ab053594e1269fcbc3681b1c
2016-03-18 17:03:18 +01:00
Romain Goyet
cddb2ab887 Don't depend on the PLATFORM variable being defined
Change-Id: Ia1d0e5f320dfc0c6ab1cf8a588c297cbbc3c0df3
2016-03-18 16:53:01 +01:00
Romain Goyet
2c702874fd Silent the linker build step
Change-Id: I6be94ec821e54ff474ec720ac0602cf25d60def1
2016-03-18 16:52:47 +01:00
Romain Goyet
2f80d17137 Don't define the PLATFORM value in the SFLAGS
Change-Id: Ic3a6729d93b8c61dda73c0aef102103bfa5f22d6
2016-03-18 16:52:29 +01:00
Romain Goyet
fd0c6eaba3 Add a (fake) implementation of powf in liba
Change-Id: I14af6937fecfbe90ab053594e1269fcbc3681b1c
2016-03-18 16:52:02 +01:00
Felix Raimundo
1ee6c58a97 Add associativity rules to the lexer
Change-Id: I684264a4bec04567a2edc9fcb1b418d517a552a2
2016-03-18 15:47:24 +01:00
Felix Raimundo
b5b11e0120 Pretify the makefile.
Change-Id: I14e8d3a5fcdd23b0cd28094d0d1f9d2dc702f86e
2016-03-18 14:33:53 +01:00
Felix Raimundo
a4e3f1e2d1 Compute power for real on the simulator.
Change-Id: I790f0b1216584835cd551893f16c052d21de7e31
2016-03-18 14:33:48 +01:00
Felix Raimundo
d1b14397ed Adds the priorities to the parser and lexer.
Change-Id: I28950e802ab223460b2d283f2d7f4908ff8d9760
2016-03-18 14:33:44 +01:00
Felix Raimundo
08ba297780 Adds the subtraction expression.
Change-Id: Ia0f14e8919df354f68cfee91776ccf12b452df64
2016-03-18 14:33:39 +01:00
Felix Raimundo
4eb2553b35 Removed some dead code.
Change-Id: I1dec8aa22ee9f429335b3402c900b7bf19356e57
2016-03-18 14:33:22 +01:00
Felix Raimundo
12cf51d04e Some cleanup
Adds the poincare README.
Removes a useless include in poincare/include/poincare/fraction_layout.hpp

Change-Id: Id4e4625b69df5eac6b7d6a58cb91c7331a0f7205
2016-03-18 14:32:59 +01:00
Felix Raimundo
e1393bea24 Update .gitignore
Removes generated parser / lexer, fonts rasterizer  and object files.

Change-Id: I03e217fca2c151db221c0bc4ae9f84d75b39d409
2016-03-18 14:32:46 +01:00
Felix Raimundo
d42bbaf25a Add exponent layout.
Change-Id: Iffce8dcdd4ecf10a8ed4170494b59fa6c524b9cb
2016-03-18 14:31:58 +01:00
Félix Raimundo
2db5b3e092 Merge changes Ic11846bc,Iaf6d678f
* changes:
  Updates the addition code to use attributes.
  Adds the power and parentheses to the parser.
2016-03-18 14:31:16 +01:00
Felix Raimundo
0059fe78fa Updates the addition code to use attributes.
We use a left and right attribtes instead of a children table.

Change-Id: Ic11846bcf0763c717834124d626cb352a30e1045
2016-03-18 14:24:25 +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
Felix Raimundo
fd972bce65 Fix build
Change-Id: If550f0db40be8085fade58896f7d8a1b7db2cb47
2016-03-18 10:48:17 +01:00
Romain Goyet
15d91052f2 [Poincare] Handle symbol/context 2015-11-18 22:31:21 +01:00
Romain Goyet
aa783df6f2 Merge branch 'master' of 192.168.0.102:~/scm/calcos 2015-11-12 11:57:19 +01:00
Romain Goyet
1b9101d1d0 Fix the build 2015-11-12 11:41:52 +01:00
Romain Goyet
59e7f444ca app: handle parsing errors 2015-10-26 11:14:04 +01:00
Romain Goyet
92a62eea12 Use KDCoordinate 2015-10-03 13:00:49 +02:00
Romain Goyet
8869986a76 [ion] Proper CM4 registers 2015-09-30 14:46:29 +02:00
Romain Goyet
6fa43ad41b Funny plotter 2015-09-29 23:10:22 +02:00
Romain Goyet
2a29d0354b [poincare] Parse variables 2015-09-29 23:09:01 +02:00
Romain Goyet
89c34d8251 [liba] strcmp 2015-09-29 23:07:19 +02:00
Romain Goyet
f8cb5a3d34 Makefile for blackbox 2015-09-29 22:02:08 +02:00
Romain Goyet
5da8500e77 [ion] blackbox 2015-09-29 22:01:48 +02:00