Commit graph

86 commits

Author SHA1 Message Date
Russell Joyce 29ebc3114b
Increased default stack/heap size to 32MiB 2020-06-24 19:16:14 +01:00
Russell Joyce 31b08382db
Added command line option for enabling interpreter stats collection
'-d' or '-d0' to collect and print basic stats, '-d1' etc. for
alternative output formats.
2020-06-24 17:30:27 +01:00
Russell Joyce 409f520b61
Added functions to log and count parsing of statements and expressions
Currently prints all expressions and statements to stderr, then outputs
a total count of each token to stderr after program execution.
2020-05-13 18:44:09 +01:00
Joseph Poirier 9c05060820 initialize 2015-06-18 22:49:47 -05:00
Joseph Poirier 97fbbaaf8f system includes before user includes, and cleanup 2015-06-17 16:34:26 -05:00
Joseph Poirier 0ac0f71fc0 proper static prototypes 2015-06-17 04:30:27 -05:00
Joseph Poirier e58eac4ae6 minor formatting 2015-06-16 22:56:37 -05:00
Joseph Poirier 5ab2a6660e minor formatting 2015-06-16 22:53:32 -05:00
Joseph Poirier e3e4ca1d68 add help option 2015-06-16 22:49:54 -05:00
Joseph Poirier 68c470a275 output license info via command line option 2015-06-16 22:39:04 -05:00
Joseph Poirier 17c7bd9bf1 actually lower the default stack space to 512KB this time 2015-06-15 15:04:44 -05:00
Joseph Poirier 2c4aa30164 lower default stack space to 512KB, update readme 2015-06-15 15:01:45 -05:00
Joseph Poirier 1ff1ef9cfb minor formatting, add message on how to terminate interactive mode 2015-06-14 15:48:18 -05:00
Joseph Poirier 826d319dbd remove unused option check 2015-06-11 15:07:33 -05:00
Joseph Poirier 9293ed0443 use stdbool.h and convert TRUE/FALSE to true/false 2015-06-10 14:24:53 -05:00
Joseph Poirier c504c52cd1 misc formatting, more descriptive out of mem erros, increase default stack size 2015-06-09 02:45:00 -05:00
Joseph Poirier 1a4b9a92c4 ongoing dev: remove unused platform specific code 2015-06-07 20:56:23 -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
Joseph Poirier c8c01cd1f5 minor help message tweak, remove nested precompile check 2015-06-06 22:48:35 -05:00
Joseph Poirier 43300d86b0 output version info 2015-06-06 22:37:28 -05:00
zik.saleeba 35e64fa8c1 Fixed a regression I added while implementing re-entrancy.
git-svn-id: http://picoc.googlecode.com/svn/trunk@582 21eae674-98b7-11dd-bd71-f92a316d2d60
2012-09-23 08:13:05 +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 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 0bb912af5d Surveyor changes from Brian Schmalz
git-svn-id: http://picoc.googlecode.com/svn/trunk@564 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-22 19:28:08 +00:00
zik.saleeba 57766aa28f Changes from Brian Schmalz to bring the surveyor platform back to a working state after I broke everything :)
git-svn-id: http://picoc.googlecode.com/svn/trunk@556 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-18 22:59:12 +00:00
zik.saleeba 9b0bd8c4dc Trying to make PicocPlatformSetExitPoint() work correctly.
git-svn-id: http://picoc.googlecode.com/svn/trunk@551 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-18 02:16:51 +00:00
zik.saleeba 55e2183bea Changes from Brian Schmalz for surveyor platform
git-svn-id: http://picoc.googlecode.com/svn/trunk@550 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-17 21:52:15 +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 88cf377659 Changes for a clean compile on the SRV
git-svn-id: http://picoc.googlecode.com/svn/trunk@537 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-15 21:06:47 +00:00
zik.saleeba e17f6f955f PICOC_VERSION is now defined as a macro in picoc
git-svn-id: http://picoc.googlecode.com/svn/trunk@528 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-14 23:42:54 +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 e847dc045c Fixed a bug in argument parsing.
git-svn-id: http://picoc.googlecode.com/svn/trunk@514 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-12 03:31:28 +00:00
zik.saleeba 1301fe7a8f More intelligent allocation/deallocation of parser data. It should now be possible to report error messages from previously-parsed files.
git-svn-id: http://picoc.googlecode.com/svn/trunk@480 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-07-27 18:16:05 +00:00
zik.saleeba 43174676ca Now handling return values from main.
Changed to more strict handling of main() - if it's not defined in main-calling mode then the program will crash rather than ignoring the problem.
Tests changed to correspond to this approach.


git-svn-id: http://picoc.googlecode.com/svn/trunk@479 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-07-27 16:20:09 +00:00
zik.saleeba df9129b355 Calls to exit(n) now return the exit value n to the command line.
This fixes issue 100.


git-svn-id: http://picoc.googlecode.com/svn/trunk@478 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-07-27 15:35:25 +00:00
zik.saleeba 8e02f32095 Added the ability to select the stack size on UNIX platforms.
Fixes issue 92.


git-svn-id: http://picoc.googlecode.com/svn/trunk@477 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-07-27 14:03:06 +00:00
zik.saleeba 0ffbd21f2e When you're using a scripting mode - "-s", "-m" or "-i" - it now automatically includes all the system headers for you.
This fixes issue 101

git-svn-id: http://picoc.googlecode.com/svn/trunk@475 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-07-27 11:48:39 +00:00
zik.saleeba e744c816c5 test
git-svn-id: http://picoc.googlecode.com/svn/trunk@467 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-07-19 20:16:32 +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 ff7aadcc11 Fixed a little bit-rot in clibrary.c
git-svn-id: http://picoc.googlecode.com/svn/trunk@455 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-07-03 17:00:54 +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 cda24bd46f test
git-svn-id: http://picoc.googlecode.com/svn/trunk@441 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-06-23 13:45:36 +00:00
zik.saleeba 985e6c960f Platform libraries now require explicit #includes
git-svn-id: http://picoc.googlecode.com/svn/trunk@440 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-06-13 20:47:17 +00:00
zik.saleeba e564b173be Some mods for the new SRV1_UNIX_HOST mode
git-svn-id: http://picoc.googlecode.com/svn/trunk@439 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-06-13 17:23:10 +00:00
zik.saleeba 40e338b823 Added printf() and variants to stdio
git-svn-id: http://picoc.googlecode.com/svn/trunk@424 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-06-11 17:12:49 +00:00