Commit graph

44 commits

Author SHA1 Message Date
zik.saleeba a2cb2e2efd Support for static variables complete
git-svn-id: http://picoc.googlecode.com/svn/trunk@547 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-17 03:17:35 +00:00
zik.saleeba ee2ba8a53c Added logical_second_arg test to Makefile
git-svn-id: http://picoc.googlecode.com/svn/trunk@543 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-16 00:19:07 +00:00
zik.saleeba b2c4d6ce83 Fixed bug108 - brackets were not collapsing the expression stack
as they should have.
Now more permissive in declarations of void main()


git-svn-id: http://picoc.googlecode.com/svn/trunk@520 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-14 06:05:53 +00:00
zik.saleeba b4f882354d Fixed a problem with nested while() loops not handling break and continue correctly.
Fixes issue #96.


git-svn-id: http://picoc.googlecode.com/svn/trunk@509 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-11 06:27:54 +00:00
zik.saleeba 806c546e06 Added LED test to the official tests
git-svn-id: http://picoc.googlecode.com/svn/trunk@507 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-11 05:04:49 +00:00
zik.saleeba e236537ab2 Fixed problem with returns inside switch() statements not working correctly outside the switch block.
Issue #116


git-svn-id: http://picoc.googlecode.com/svn/trunk@506 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-11 04:49:44 +00:00
zik.saleeba c0a21f5c37 Fixed for loops of the form:
for (;;)

Fixes issue 93


git-svn-id: http://picoc.googlecode.com/svn/trunk@474 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-07-27 11:34:24 +00:00
zik.saleeba 036f3efa8b Fixed a problem with variable declarations in inner blocks giving errors. bug#82.
git-svn-id: http://picoc.googlecode.com/svn/trunk@470 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-07-24 16:07:56 +00:00
zik.saleeba 809cdf5b94 Fixed issue with void parameters not being ignored
git-svn-id: http://picoc.googlecode.com/svn/trunk@465 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-07-18 17:01:00 +00:00
zik.saleeba 6d20f4b02f Support for #if, #ifdef, #ifndef, #else and #endif added
git-svn-id: http://picoc.googlecode.com/svn/trunk@464 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-07-18 13:42:07 +00:00
zik.saleeba a365e1e993 Now calls main() if one has been defined, and not if one hasn't.
git-svn-id: http://picoc.googlecode.com/svn/trunk@460 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-07-05 19:00:29 +00:00
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 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 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 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 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 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 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 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 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 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 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 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 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 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 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
zik.saleeba 2f5a46681e Nesting test added
git-svn-id: http://picoc.googlecode.com/svn/trunk@179 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-03-09 20:48:26 +00:00
zik.saleeba 1b312544d9 'else' fixed, along with semicolon handling
git-svn-id: http://picoc.googlecode.com/svn/trunk@175 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-03-09 00:34:32 +00:00
zik.saleeba 878e545b20 Hexadecimal, octal and binary integer literals added
git-svn-id: http://picoc.googlecode.com/svn/trunk@165 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-03-08 01:09:42 +00:00
zik.saleeba 86bb48b158 #define now works for simple unparameterised expression macros
git-svn-id: http://picoc.googlecode.com/svn/trunk@159 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-03-06 07:27:45 +00:00
zik.saleeba b2c95a5604 Tests are now more flexible about whitespace
git-svn-id: http://picoc.googlecode.com/svn/trunk@138 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-03-01 21:26:54 +00:00
zik.saleeba 318a966bd0 Added pointer test case
git-svn-id: http://picoc.googlecode.com/svn/trunk@103 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-24 02:12:20 +00:00
zik.saleeba 65db9a490a Added tests for functions, while and do..while
git-svn-id: http://picoc.googlecode.com/svn/trunk@88 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-19 11:00:51 +00:00
zik.saleeba 2caa072dec Added test case for switch/case/break
git-svn-id: http://picoc.googlecode.com/svn/trunk@84 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-18 11:05:34 +00:00
zik.saleeba b073f187f8 Revamped the way lvalues work. Now both structs and '.' should work.
git-svn-id: http://picoc.googlecode.com/svn/trunk@77 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-15 05:52:03 +00:00
Renamed from test/Makefile (Browse further)