zik.saleeba
8021fed051
Implemented the ternary operator
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@458 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-07-04 19:52:52 +00:00
zik.saleeba
73a5d6a11b
Added non-working LED test
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@454 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-07-03 16:33:57 +00:00
zik.saleeba
7700f11893
Can now call with command line arguments.
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@453 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-07-03 16:10:15 +00:00
zik.saleeba
b4b5594a5d
Added hanoi test program.
...
Now programs can be run without having to explicitly call main().
git-svn-id: http://picoc.googlecode.com/svn/trunk@452 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-07-03 15:20:29 +00:00
zik.saleeba
06acdabc6f
Fixed compile on cygwin
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@446 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-06-29 10:28:13 +00:00
zik.saleeba
57c664bea8
Fixed test case for string comparison
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@444 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-06-25 18:52:16 +00:00
zik.saleeba
475223a9f9
Fixed a bug in the string test script
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@442 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-06-23 19:35:02 +00:00
zik.saleeba
0afc055ab1
Initial version of a standard string library added.
...
Some regressions fixed.
git-svn-id: http://picoc.googlecode.com/svn/trunk@433 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-06-13 12:19:32 +00:00
zik.saleeba
2dd0dfb049
Changed tests to new standard library.
...
Fixed some regressions when converting to new standard library.
git-svn-id: http://picoc.googlecode.com/svn/trunk@432 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-06-13 11:58:52 +00:00
zik.saleeba
8ca43880c9
Added EOF to stdio.
...
Tested stdio functions so far.
git-svn-id: http://picoc.googlecode.com/svn/trunk@422 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-06-06 17:31:12 +00:00
zik.saleeba
a21f1d8a70
Implemented typedef
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@421 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-06-06 17:03:15 +00:00
zik.saleeba
fa3e9a1187
Fixed a bug in multiple dimension array access (issue #80 )
...
Added a test for this
git-svn-id: http://picoc.googlecode.com/svn/trunk@419 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-06-05 12:58:37 +00:00
zik.saleeba
5e6ddfa7ff
Fixed a bug which was causing sprintf() to crash.
...
Added a test for it.
Issue #66
git-svn-id: http://picoc.googlecode.com/svn/trunk@401 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-11-14 11:11:38 +00:00
zik.saleeba
83ded6eb54
Added missing test
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@397 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-11-08 16:38:42 +00:00
zik.saleeba
a648f2cf27
Array initialisers are now implemented - enhancement issue #42
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@396 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-11-08 16:33:31 +00:00
zik.saleeba
47f6ef6831
Test for sizeof added
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@391 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-11-07 20:25:31 +00:00
zik.saleeba
aea16db269
Made strcmp() results more consistent for testing
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@376 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-11-04 20:45:32 +00:00
zik.saleeba
11cf64cc5b
Added test for array assignment
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@374 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-11-04 02:04:47 +00:00
zik.saleeba
0872369ead
Fixed test for correct floating point display
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@358 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-10-30 12:35:37 +00:00
zik.saleeba
8f6530b876
Updated tests with correct floating point printing
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@357 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-10-30 12:34:07 +00:00
zik.saleeba
7560c29942
Added test for defect #60
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@354 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-10-28 21:35:35 +00:00
zik.saleeba
50b45890bc
Fixed array indexing issue.
...
Fixed problem in index() and rindex() NULL pointer returns.
Nicer handling of printing NULL pointers.
New test suite for strings.
git-svn-id: http://picoc.googlecode.com/svn/trunk@353 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-10-28 21:34:51 +00:00
zik.saleeba
24a601271a
malloc() and free() implemented.
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@346 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-10-25 20:50:56 +00:00
zik.saleeba
c6d483ee6f
Unsigned types now exist. They're probably not handled quite correctly in expressions yet though.
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@345 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-10-25 11:54:34 +00:00
zik.saleeba
7d135bbdd5
Doing some work on casts and sizeof
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@337 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-10-10 14:49:49 +00:00
zik.saleeba
a739b40b2c
Fixed quicksort test
...
Fixed math library test
git-svn-id: http://picoc.googlecode.com/svn/trunk@334 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-06-17 10:39:32 +00:00
zik.saleeba
2a69c48777
Fixed a bug in parsing "while ()" and "do..while()". I tried to be too clever. Bad idea.
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@329 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-06-04 00:18:28 +00:00
zik.saleeba
d432ebf74a
Fixed a problem with returning void.
...
Updated quicksort test to be a real working test.
git-svn-id: http://picoc.googlecode.com/svn/trunk@327 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-06-03 05:24:41 +00:00
zik.saleeba
b55ab05d48
Added support for octal and hex character constants
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@326 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-06-03 02:57:23 +00:00
zik.saleeba
a4889edcf1
Fixes in handling void values.
...
Making quicksort test more real.
Better error reporting for invalid parameters.
git-svn-id: http://picoc.googlecode.com/svn/trunk@318 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-06-02 07:01:43 +00:00
zik.saleeba
d2da61b81d
Added a quicksort test case
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@311 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-05-29 03:24:36 +00:00
zik.saleeba
5f0960d161
Added tests for new math library
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@310 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-05-29 01:01:07 +00:00
zik.saleeba
ec303bd4bc
Fixed a mistake in the test case
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@299 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-05-28 00:18:52 +00:00
zik.saleeba
d1d1b7e84e
Fixed a problem with type coercion on parameter passing.
...
Added a handy feature for better-than-C type coercion in printf().
Added a regression test for all sorts of type coercion.
git-svn-id: http://picoc.googlecode.com/svn/trunk@298 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-05-27 23:54:22 +00:00
zik.saleeba
8b2fd2c56a
Added tests for FP type coercion
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@296 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-05-27 05:06:36 +00:00
zik.saleeba
2cb35ef26a
Fixed a problem with floating point prefix expressions.
...
Added a regression test for floating point.
git-svn-id: http://picoc.googlecode.com/svn/trunk@293 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-05-27 04:01:52 +00:00
zik.saleeba
4ea76ea5b3
Changed dereferencing to handle arrays correctly.
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@269 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-04-26 03:26:04 +00:00
zik.saleeba
755cbd30b5
Added new char array test
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@266 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-04-23 12:08:27 +00:00
zik.saleeba
a55cbe0516
Added missing tests
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@261 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-04-22 08:24:56 +00:00
zik.saleeba
16c5b72f4d
Pointer comparison operations implemented
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@260 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-04-22 08:19:52 +00:00
zik.saleeba
096def8f55
Pointer arithmetic and NULL pointer support added
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@255 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-04-19 11:49:01 +00:00
zik.saleeba
5b16c5c793
Precedence test added
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@250 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-04-15 10:56:02 +00:00
zik.saleeba
2e22614595
Final problems with the new expression system fixed
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@248 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-04-15 10:47:51 +00:00
zik.saleeba
70d48e75d7
Updated tests to reflect the removal of sayhello() and printint()
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@204 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-03-15 09:09:38 +00:00
zik.saleeba
6a586cee75
Fixed bug in enum declaration requiring a variable name
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@187 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-03-10 08:03:10 +00:00
zik.saleeba
9769bd432b
Fixed problem with 'return' parsing which was causing the factorial example to fail
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@185 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-03-10 02:18:17 +00:00
zik.saleeba
bee7e23212
Functions with no parameters tested and passed
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@184 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-03-10 02:04:19 +00:00
zik.saleeba
8d76edfe4b
#include now works
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@182 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-03-10 01:01:57 +00:00
zik.saleeba
456a83da75
'->' operator implemented
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@181 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-03-09 23:18:04 +00:00
zik.saleeba
23bce9d38a
enums implemented
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@180 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-03-09 22:36:01 +00:00