Joseph Poirier
6c9bd24783
more desciptive error messages
2015-06-08 17:46:25 -05:00
Joseph Poirier
9addfe1788
tidy up compilation environment
2015-06-07 22:05:17 -05:00
Joseph Poirier
e0775801f9
formatting
2015-06-07 01:28:10 -05:00
Joseph Poirier
a61bd97d9b
formatting
2015-06-06 23:40:08 -05:00
zik.saleeba
62ca6eacf1
Fixed issue #192 - "Define macro inside a function block will crash picoc".
...
Macros inside functions now work correctly.
git-svn-id: http://picoc.googlecode.com/svn/trunk@605 21eae674-98b7-11dd-bd71-f92a316d2d60
2014-03-01 02:54:09 +00:00
zik.saleeba
6e9b4b3c84
Fixed DEBUG_EXPRESSIONS option
...
Issue #179
git-svn-id: http://picoc.googlecode.com/svn/trunk@601 21eae674-98b7-11dd-bd71-f92a316d2d60
2013-03-17 00:23:39 +00:00
zik.saleeba
b5a600a749
Merged in a pile of changes from broscutamaker
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@599 21eae674-98b7-11dd-bd71-f92a316d2d60
2013-03-16 07:39:34 +00:00
zik.saleeba
a784b77f75
Fix for macro bug sumbitted by broscutamaker
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@597 21eae674-98b7-11dd-bd71-f92a316d2d60
2013-03-16 06:09:32 +00:00
zik.saleeba
62bc229f4a
Adapted to be fully re-entrant.
...
Issue #137
git-svn-id: http://picoc.googlecode.com/svn/trunk@581 21eae674-98b7-11dd-bd71-f92a316d2d60
2012-09-22 05:11:44 +00:00
zik.saleeba
10714186eb
Added the ability to declare unsized arrays which can then have a sized
...
value assigned to them. Part of #142
git-svn-id: http://picoc.googlecode.com/svn/trunk@577 21eae674-98b7-11dd-bd71-f92a316d2d60
2012-09-03 10:14:06 +00:00
zik.saleeba
cb4c34b506
Created Visual Studio 2011 project.
...
Modified to compile under Visual Studio 2011.
git-svn-id: http://picoc.googlecode.com/svn/trunk@572 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-10-05 10:57:24 +00:00
zik.saleeba
853b6f6259
Added some more comments.
...
Added the beginnings of a debugger. It's not useful yet.
git-svn-id: http://picoc.googlecode.com/svn/trunk@570 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-05-01 06:50:00 +00:00
zik.saleeba
3d7eaa7da6
Added "goto" statement.
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@560 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-21 04:44:16 +00:00
zik.saleeba
b1bd91a900
Fixed a problem with explicit pointer/pointer casts not being allowed.
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@558 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-21 00:57:06 +00:00
zik.saleeba
33985ad161
Working on enum issue
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@552 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-18 02:31:56 +00:00
zik.saleeba
b23d1e8e06
Big reorganisation to make it easier to access picoc as a library.
...
Also moved most internal header stuff to the new header interpreter.h.
git-svn-id: http://picoc.googlecode.com/svn/trunk@549 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-17 07:11:20 +00:00
zik.saleeba
cab5e8b2d8
Added support for static type qualifiers.
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@546 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-16 23:38:41 +00:00
zik.saleeba
bd601e45c3
Structure element access wasn't obeying precedence rules. It is now.
...
Fixed test case 50.
git-svn-id: http://picoc.googlecode.com/svn/trunk@545 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-16 04:46:04 +00:00
zik.saleeba
2de3aaba52
Fixed a bug in bracket evaluation - was collapsing the expression stack at the wrong precedence.
...
Fixed a bug in evaluation of logical operators where the RHS is not evaluated - off-by-one error in precedence.
git-svn-id: http://picoc.googlecode.com/svn/trunk@544 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-16 03:58:48 +00:00
zik.saleeba
807b3d09ba
Logical operators now only evaluate the second argument if necessary, as specified in the C standard.
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@542 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-16 00:13:11 +00:00
zik.saleeba
e44b198946
Added a new alignment system which should correspond to the struct alignments of most processors. This means that picoc struct members should match up with native C structs in most cases. I hope.
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@532 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-15 04:25:09 +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
6dd3e69fa5
Fixes for Brian Schmalz for the surveyor platform.
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@516 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-12 04:23:37 +00:00
zik.saleeba
eb7010d292
Now avoiding structure assignment since it seems to cause problems on blackfin processors. Urk!
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@515 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-12 04:04:51 +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
ab677a0670
Fixed NO_FP support
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@504 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-10 23:50:05 +00:00
zik.saleeba
c2ba9f063c
Fixed a problem with type printing in expression debug mode
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@487 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-01-07 04:06:33 +00:00
zik.saleeba
129564b24a
Problem with shift right operator fixed. Issue #114 .
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@484 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-01-06 19:36:40 +00:00
zik.saleeba
b69b6d30cc
Fixes a problem with casts not being accepted in function parameters.
...
Issue #111
git-svn-id: http://picoc.googlecode.com/svn/trunk@483 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-09-04 13:39:58 +00:00
zik.saleeba
dc0b17c1a4
Fixed missing "unsigned long" handling in ExpressionAssignInt(). Fixes issue 91 reported by duncan.forster
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@472 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-07-27 08:53:06 +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
6cc5724395
Added fix from Duncan Forster for bug #85
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@468 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-07-21 05:45:44 +00:00
zik.saleeba
145a99a7b1
Completed parameterised macros
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@463 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-07-11 18:44:07 +00:00
zik.saleeba
7c754bad48
Can now parse parameterised macros. Can't evaluate them yet though.
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@462 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-07-08 04:52:05 +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
907f2b26d9
Changed "NativePointer" to "Pointer" for brevity
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@437 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-06-13 14:41:03 +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
ea10e1a369
Added function prototypes as requested in issue #74
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@410 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-03-01 20:39:08 +00:00
zik.saleeba
fc348214c9
Stricter handling of semicolons at the end of statements.
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@402 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-11-22 11:36:15 +00:00
zik.saleeba
d09e156558
Fixes for Surveyor SRV-1 platform
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@398 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-11-08 19:23:50 +00:00
zik.saleeba
c3dcac1812
Added long and unsigned long data types
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@392 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-11-07 21:05:15 +00:00
zik.saleeba
97ad53a6b2
Fixed a problem with sizeof(explicit type) not working.
...
Also fixed a problem with parsing some types in expressions.
Issue #39
git-svn-id: http://picoc.googlecode.com/svn/trunk@390 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-11-07 20:22:11 +00:00
zik.saleeba
e077cc9d49
Fixed UltraSPARC II bus error. Probably a compiler bug?
...
Issue #65
git-svn-id: http://picoc.googlecode.com/svn/trunk@385 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-11-07 15:17:53 +00:00
zik.saleeba
064c64d202
More work on 64 bit support
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@382 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-11-06 22:34:12 +00:00
zik.saleeba
9ea0dcee28
Varius fixes for 64 bit architectures
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@381 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-11-06 22:16:12 +00:00
zik.saleeba
d36833b139
Fixed some warnings for 64 bit architectures
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@380 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-11-06 18:17:36 +00:00
zik.saleeba
3162c1a2bf
Twiddling with allocation for 64-bit architectures
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@378 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-11-06 18:08:11 +00:00
zik.saleeba
5c86cfaf36
Problems with prefix operators of the same precedence as a cast immediately
...
following the cast fixed.
Issue #55
git-svn-id: http://picoc.googlecode.com/svn/trunk@377 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-11-06 16:35:34 +00:00
zik.saleeba
e75518e139
Changed the way that arrays are represented to a simpler one without
...
the extra level of indirection.
Fixed various array-related problems, including array assignment
which is issue #49 .
git-svn-id: http://picoc.googlecode.com/svn/trunk@373 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-11-04 02:02:37 +00:00
zik.saleeba
2e07f89194
Possible fix for big-endian bug
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@371 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-11-03 20:40:35 +00:00