zik.saleeba
48a6472c68
All allocations are now cleaned up neatly on exit. This is probably unnecessary given that we run our own heap but gives confidence that there are no internal memory leaks.
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@199 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-03-11 23:49:10 +00:00
zik.saleeba
c403ddcd04
Updated TODO
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@198 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-03-11 22:36:25 +00:00
zik.saleeba
6f7daf0145
Now cleaning up types too
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@195 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-03-11 10:17:46 +00:00
zik.saleeba
a22c243c06
Doing some work on cleaning up more nicely on exit.
...
Also allowing the use of the native heap allocator as an option.
git-svn-id: http://picoc.googlecode.com/svn/trunk@192 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-03-11 02:19:18 +00:00
zik.saleeba
588353449e
Updated TODO
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@186 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-03-10 04:11:03 +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
b8aedfe050
Fixed bugs in LexCopyTokens() which were affecting multi-line function definitions in interactive mode
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@183 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-03-10 02:01:12 +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
1fd07ea9a2
Corrected test
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@177 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-03-09 00:45:33 +00:00
zik.saleeba
b9990d2c39
Functions returning void fixed
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@176 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-03-09 00:43:31 +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
08cd7e8328
Changed prompt for surveyor
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@174 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-03-09 00:07:44 +00:00
zik.saleeba
1169e6f909
Prompt changes
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@172 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-03-08 23:03:59 +00:00
zik.saleeba
fab9d6ed1e
More work on operator precedence. Plenty to do yet.
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@171 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-03-08 08:40:05 +00:00
zik.saleeba
dc04ba8dd0
Split parsing across two files parse.c and the new expression.c
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@170 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-03-08 07:56:28 +00:00
zik.saleeba
679e235822
TODO updated
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@169 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-03-08 04:35:58 +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
4e0f734572
Updated TODO
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@160 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-03-06 10:42:37 +00:00
zik.saleeba
6436319fa6
Updated TODO
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@158 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-03-06 06:11:05 +00:00
zik.saleeba
8b410241ee
Declarations can now assign an initial value
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@156 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-03-06 04:55:11 +00:00
zik.saleeba
d6c73f42d4
Fixed lexer issue temporarily
...
Diked out failing pointer test case for now
Added platform return value example
git-svn-id: http://picoc.googlecode.com/svn/trunk@127 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-28 19:57:03 +00:00
zik.saleeba
6ce1662475
Platform-dependent exit() function for Surveyor
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@121 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-28 05:43:28 +00:00
zik.saleeba
cebff6d290
Thinking about pointers to struct and array elements
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@119 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-26 10:44:06 +00:00
zik.saleeba
3558506261
Fiddling with pointers
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@115 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-25 11:14:46 +00:00
zik.saleeba
20fb2407ef
Big reorganisation to make it easier to port to different targets
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@110 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-24 11:16:37 +00:00
zik.saleeba
7f5aa8e701
Updated TODO
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@107 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-24 04:53:01 +00:00
zik.saleeba
93a6a0e9d0
Fixed a bug in array allocation (regression)
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@100 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-24 00:08:11 +00:00
zik.saleeba
4821d689ad
Big changes to string constants.
...
Got rid of str.c.
First attempt at stdarg params in printf()
git-svn-id: http://picoc.googlecode.com/svn/trunk@97 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-21 02:35:52 +00:00
zik.saleeba
e6e62a26df
Updated TODO
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@94 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-20 00:14:21 +00:00
zik.saleeba
2e545deb6a
Arrays debugged and working
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@80 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-15 07:39:41 +00:00
zik.saleeba
78e0ff8bc1
Implemented array lookup
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@79 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-15 06:46:37 +00:00
zik.saleeba
a8b4b08d93
Implemented the '.' operator for struct/union member access
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@66 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-09 11:40:56 +00:00
zik.saleeba
75e45704e8
Bulk changes to accomodate the new storage model.
...
The system now compiles again (probably doesn't run though).
git-svn-id: http://picoc.googlecode.com/svn/trunk@38 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-01-26 08:57:32 +00:00
zik.saleeba
fad5c6db69
Big changes and progress towards the new type system. Doesn't compile right now. Maybe tomorrow.
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@35 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-01-23 11:34:12 +00:00
zik.saleeba
a59be13de3
Now compiles with some of the new structure in place
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@34 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-01-21 09:02:05 +00:00
zik.saleeba
df1d001b76
Added TODO file
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@32 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-01-05 11:30:12 +00:00