Commit graph

  • d432ebf74a Fixed a problem with returning void. Updated quicksort test to be a real working test. zik.saleeba 2009-06-03 05:24:41 +0000
  • b55ab05d48 Added support for octal and hex character constants zik.saleeba 2009-06-03 02:57:23 +0000
  • 637e224fff Now parses but ignores signed/unsigned declarations zik.saleeba 2009-06-03 02:31:43 +0000
  • 44eb3d3def Now handles "4 = b;" correctly (ie. with an error message) Also fixed a problem with prompting again for more input on EOF. zik.saleeba 2009-06-03 02:15:25 +0000
  • d38b4fa617 Added nicer error reports to parameter assignment zik.saleeba 2009-06-03 00:26:14 +0000
  • 6f00c2a853 Added a check for rubbish after parameters in a function defintion. zik.saleeba 2009-06-02 08:23:59 +0000
  • eb6f323f06 HeapAlloc() changed to HeapAllocMem() to avoid clash with win32 namespace. zik.saleeba 2009-06-02 08:00:02 +0000
  • bb0d19a733 Now conforms fully to the ISO C90 standard zik.saleeba 2009-06-02 07:50:46 +0000
  • 43cf4f5c9f Permitting parsing of expressions which start with an asterisk prefix operator. zik.saleeba 2009-06-02 07:10:35 +0000
  • a4889edcf1 Fixes in handling void values. Making quicksort test more real. Better error reporting for invalid parameters. zik.saleeba 2009-06-02 07:01:43 +0000
  • 9f9728dab5 Made it so a null character causes EOF. This shouldn't really be necessary but maybe it makes it easier for some implementations. zik.saleeba 2009-06-02 06:40:47 +0000
  • 2f8f365d46 "int a = *'" now reports an error zik.saleeba 2009-06-02 06:30:14 +0000
  • f4b2bdcc64 Fixed a bug which was causing declarations in functions to run even when just scanning. zik.saleeba 2009-06-02 06:07:59 +0000
  • 825c393240 Reworking of how assignment works. Now all places which do assignment of values should work the same. zik.saleeba 2009-06-02 05:51:51 +0000
  • d2da61b81d Added a quicksort test case zik.saleeba 2009-05-29 03:24:36 +0000
  • 5f0960d161 Added tests for new math library zik.saleeba 2009-05-29 01:01:07 +0000
  • 280458a7c6 Made Makefile consistent with options zik.saleeba 2009-05-29 00:51:48 +0000
  • 022e09a7a6 Fixed a bug which was causing decimal constants less than zero to be interpreted as octal zik.saleeba 2009-05-29 00:40:45 +0000
  • c1381adae5 Fixed missing references to fdlibm functions. zik.saleeba 2009-05-29 00:32:40 +0000
  • 4bc228c439 Fixed bogus references to native math library zik.saleeba 2009-05-29 00:21:58 +0000
  • ece89990de Removed old, verbose fdlibm with many files zik.saleeba 2009-05-29 00:14:26 +0000
  • a38afda0ab Limited decimal printing to sane precision. Made C library able to access new math library. UNIX compile defaults to using new math library. Changed name of new math library to math.library.c Added defines for new math library. Renamed new soft floating point library to softfloat_library.c zik.saleeba 2009-05-29 00:12:12 +0000
  • 11e56d378c Added some extra math library functions. The beginnings of support for soft float and math library. Not working yet. zik.saleeba 2009-05-28 08:22:24 +0000
  • ef5d729bd8 Added software floating point library. Not integrated yet. zik.saleeba 2009-05-28 03:22:16 +0000
  • a99af94f38 Added a math library for architectures with none. Not integrated yet. zik.saleeba 2009-05-28 02:54:23 +0000
  • ec303bd4bc Fixed a mistake in the test case zik.saleeba 2009-05-28 00:18:52 +0000
  • 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. zik.saleeba 2009-05-27 23:54:22 +0000
  • 4668c0a80e Fixed a bug which caused a hang when a comma was omitted in a parameter list, followed by an identifier. zik.saleeba 2009-05-27 05:59:44 +0000
  • 8b2fd2c56a Added tests for FP type coercion zik.saleeba 2009-05-27 05:06:36 +0000
  • 4949ad046a Added type coercion to floating point from numeric types in parameters. zik.saleeba 2009-05-27 05:03:48 +0000
  • 83d6b9a6d3 Added a new math library. Fixed printing of floating point 0.0. zik.saleeba 2009-05-27 04:55:44 +0000
  • 2cb35ef26a Fixed a problem with floating point prefix expressions. Added a regression test for floating point. zik.saleeba 2009-05-27 04:01:52 +0000
  • 8092d67c70 Fixed a problem with printing negative floating point numbers zik.saleeba 2009-05-27 03:43:37 +0000
  • da2cd4805d Fixed an annoying bug which looked like a floating point issue but was in fact a string lexer issue. zik.saleeba 2009-05-27 03:23:41 +0000
  • 77c4b6e71b Floating point evaluation implicit casting fixes. Fixed a problem on UNIX where the program usage message couldn't be printed due to the platform output system not being initialised by that point in execution. zik.saleeba 2009-05-27 03:02:30 +0000
  • 6015fc5694 Fixed return of floating point tokens zik.saleeba 2009-05-27 00:06:09 +0000
  • 6c8d9ba4cb Fixed a floating point type error bug. Re-ordered handling of infix floating point operators to handle them before integer coercion. zik.saleeba 2009-05-27 00:05:31 +0000
  • eac072593c Nicer formatting of '.0' zik.saleeba 2009-05-26 23:23:39 +0000
  • 758955fc11 A slightly better fix for the FP printing problem zik.saleeba 2009-05-26 22:42:38 +0000
  • b9df205e6a Fixed a bug in floating point printing zik.saleeba 2009-05-26 22:31:42 +0000
  • 317c851f0d added support for gps waypoint navigation and wheel encoders in library_surveyor.c surveyor.com 2009-05-25 21:17:29 +0000
  • 207029259c Helpful comments added on tokens zik.saleeba 2009-05-24 00:22:04 +0000
  • db9219a324 fixed problem with signal() in SURVEYOR_HOST surveyor.com 2009-05-17 15:20:39 +0000
  • 5cece5090c Fixed a painful bug which was causing numbers to be corrupted on the surveyor architecture. Why this didn't cause a problem on x86 I'll never know. zik.saleeba 2009-05-16 12:51:55 +0000
  • f4c00c74b4 added vscan() function for edge detection surveyor.com 2009-05-15 19:42:08 +0000
  • 5dcde3d5ea Fix for a bug where variables which were initialised on declaration weren't writable. zik.saleeba 2009-05-14 00:21:29 +0000
  • 6b851b88d2 added vcam() camera control and vfind() pixel search functions to SURVEYOR_HOST surveyor.com 2009-05-12 16:39:35 +0000
  • a76fc34881 By popular demand I'm adding support for native pointers. It's a work in progress - not working yet. zik.saleeba 2009-05-06 00:25:09 +0000
  • 0acb79a9a5 Removed this "deliberate" mistake. zik.saleeba 2009-05-05 22:19:13 +0000
  • 20c649d7ef Added some changes for umon suggested by Ed Sutter zik.saleeba 2009-05-05 22:12:59 +0000
  • bd9cb90e02 Added the beginnings of flying fox platform support. Removed some annoying debug. Made it easier to compile unmodified on non-UNIX systems. zik.saleeba 2009-05-04 12:02:16 +0000
  • 997f0c119f Fixed a char * arithmetic bug zik.saleeba 2009-04-29 03:24:15 +0000
  • 5f09200360 Implementing variants on pointer assignment - assigning arrays and array pointers to pointers to the array element type. zik.saleeba 2009-04-27 12:19:36 +0000
  • b6e61dd8ab Created a stream output system. Implemented sprintf(). zik.saleeba 2009-04-27 04:56:58 +0000
  • 647cc90999 Added pre/post inc/dec operators for pointers. zik.saleeba 2009-04-26 11:39:16 +0000
  • 4ea76ea5b3 Changed dereferencing to handle arrays correctly. zik.saleeba 2009-04-26 03:26:04 +0000
  • c805b3fdec Added ability to print types in error messages zik.saleeba 2009-04-24 01:02:25 +0000
  • f2f44b1bf7 Slightly neater and more general way of handling type coercion on parameter passing. Doesn't actually correct the Param->Typ any more but this shouldn't be necessary. zik.saleeba 2009-04-23 22:46:32 +0000
  • 755cbd30b5 Added new char array test zik.saleeba 2009-04-23 12:08:27 +0000
  • d06f2442fb Fixed int->char coercion error in parameter passing. zik.saleeba 2009-04-23 11:57:45 +0000
  • 99656dc9fb Added NO_FP around new FP assign code zik.saleeba 2009-04-22 22:28:30 +0000
  • 146a591ed0 Fixed a bug in char<->int coercion in parameter passing. zik.saleeba 2009-04-22 22:05:27 +0000
  • 95f2b3e193 Characters are now actually stored as char and coerced to other types when necessary. Parameters are passed as the requested types and coerced where appropriate. Assignments are now a function rather than a macro. Cleaned up some comments in lex.c. Small valued integer constants are passed as char constants to save space. zik.saleeba 2009-04-22 12:06:58 +0000
  • a55cbe0516 Added missing tests zik.saleeba 2009-04-22 08:24:56 +0000
  • 16c5b72f4d Pointer comparison operations implemented zik.saleeba 2009-04-22 08:19:52 +0000
  • e5fa7017f0 Better checks on pointers. Pointer offsets are now honoured. zik.saleeba 2009-04-22 07:23:26 +0000
  • 8c918707f2 Added checks for NULL pointer dereference zik.saleeba 2009-04-22 01:58:03 +0000
  • f6d397211d Removed library_unix.c code used for tests and examples zik.saleeba 2009-04-20 00:56:17 +0000
  • 6ff093bb16 Updated TODO zik.saleeba 2009-04-19 12:00:53 +0000
  • 096def8f55 Pointer arithmetic and NULL pointer support added zik.saleeba 2009-04-19 11:49:01 +0000
  • 88d904ada8 added support for LIS3LV02DQ 3-axis accelerometer. int data = tilt(int); where tilt(1) is x-axis, tilt(2) is y-axis, tilt(3) is z-axis surveyor.com 2009-04-19 01:38:53 +0000
  • 7c2ce7290a Fixes for a clean surveyor compile zik.saleeba 2009-04-19 01:15:01 +0000
  • a07c3ed286 Added some new pointer-related feature requests zik.saleeba 2009-04-17 22:44:25 +0000
  • 5b16c5c793 Precedence test added zik.saleeba 2009-04-15 10:56:02 +0000
  • 94e051c9c9 The new expression system is now the mainstream expression evaluator. Hoorah! zik.saleeba 2009-04-15 10:49:22 +0000
  • 2e22614595 Final problems with the new expression system fixed zik.saleeba 2009-04-15 10:47:51 +0000
  • fdbdb116b6 Just some handy examples zik.saleeba 2009-04-15 10:46:52 +0000
  • 48dc9c02a8 updated TODO zik.saleeba 2009-04-15 07:48:57 +0000
  • 7cb2079af4 Macros implemented zik.saleeba 2009-04-15 06:57:02 +0000
  • 883db65e15 '->' now works in the new expression system. zik.saleeba 2009-04-15 06:40:56 +0000
  • 8339e586d1 Fixed a problem with assignment of non-numeric types zik.saleeba 2009-04-15 05:26:46 +0000
  • 031edfb7ab Problem with ending expressions fixed in new expression system. Problem with handling ternary operators in case values fixed (those colons are tricky). zik.saleeba 2009-04-14 23:44:49 +0000
  • 9fdee50576 Case expression handling fixed. zik.saleeba 2009-04-14 08:44:47 +0000
  • ca628b8cb3 Array indexing now works in the new expression system. zik.saleeba 2009-04-14 06:55:00 +0000
  • d034ded5fc Structs now work in the new expression system. Tests 03 and 04 now pass. zik.saleeba 2009-04-14 03:18:40 +0000
  • 9e24449497 Problems with increment/decrement operators fixed in new expression system. Test 02_printf now works. zik.saleeba 2009-04-13 09:02:45 +0000
  • 1877ab67aa New expression system now successfully evaluates simple expressions. zik.saleeba 2009-04-13 06:57:32 +0000
  • 45054b4498 Fixed error in heap cleanup on UNIX. zik.saleeba 2009-04-13 06:45:38 +0000
  • 92e14727d7 added analog() function to support AD7998 8-channel 12-bit A/D converter surveyor.com 2009-04-11 22:50:38 +0000
  • 8038424d1a Removed diagnostics zik.saleeba 2009-04-11 06:36:40 +0000
  • 15aa51e08d Fixed an annoying problem with HeapFree() which was causing occasional instability. This fixes Howard's problem with peek()/poke(). zik.saleeba 2009-04-10 09:35:10 +0000
  • 888db91168 fixed problems with iodir(), ioread() and iowrite() functions surveyor.com 2009-04-08 17:58:15 +0000
  • 9e75ab3760 Temporarily added some test for the parameter passing problem Howard found. zik.saleeba 2009-04-08 12:00:45 +0000
  • eed2b99515 minor edits to library_surveyor.c surveyor.com 2009-04-08 01:42:44 +0000
  • 414ae8a3c2 added peek(), poke(), battery(), iodir(), ioread() and iowrite() to Surveyor robot functions surveyor.com 2009-04-08 01:17:12 +0000
  • 16922d2e73 library struct example for Howard zik.saleeba 2009-04-07 10:48:46 +0000
  • 61e93e4774 Working on a struct example for Howard zik.saleeba 2009-04-07 06:36:06 +0000
  • 74673d965a More work on expressions. Trying to get variable lookups to work in the new system. zik.saleeba 2009-04-05 02:24:00 +0000
  • 61174fb115 Interactive mode error handling fixed for surveyor. All surveyor warnings fixed. zik.saleeba 2009-04-04 03:11:12 +0000
  • ccbf149212 Fixed a problem with interactive mode error handling. Will need some extra work for Surveyor... tomorrow. zik.saleeba 2009-03-31 11:08:29 +0000