Commit graph

173 commits

Author SHA1 Message Date
Russell Joyce 97030639f1
Fixed for loop initialisers with variable declarations 2020-06-18 19:18:14 +01:00
Russell Joyce d04337125e
Added support for extern variable declarations
Effectively just ignores any declarations as global scope is shared
across files in PicoC anyway, so the ultimate definition should be
enough.
2020-06-17 19:57:10 +01:00
Russell Joyce 45d85111f0
Added parsing of volatile qualifier
This doesn't affect code execution, but is exposed through TypeParse().
2020-06-09 12:30:47 +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 b9ffe4eeb6
delete unused code 2018-01-17 01:49:48 -06:00
Joseph Poirier 676addf333
add the last bits of the hack 2018-01-17 00:55:24 -06:00
Joseph Poirier aad3648fc0
make the ugly hack uglier 2018-01-17 00:31:08 -06:00
Joseph Poirier b8b4c48637
properly print large long values 2018-01-16 21:06:52 -06:00
Joseph Poirier c053f13e4f
back to original left shift code due to test regression from commit ba652ebe584 2018-01-11 21:49:58 -06:00
Joseph Poirier 3a0bf87bb0
proper typecast, L/R shift fixes 2017-08-14 23:53:36 -05:00
Joseph Poirier e4a559a1dc
remove some tabs 2017-08-14 22:54:09 -05:00
Joseph Poirier df15ea775c
type fixes 2017-08-14 22:50:16 -05:00
Joseph Poirier f551e28a49 formatting 2015-06-21 20:54:56 -05:00
Joseph Poirier 6e1c3aa71d formatting 2015-06-20 06:16:30 -05:00
Joseph Poirier 27b73e91de formatting 2015-06-18 23:49:13 -05:00
Joseph Poirier b117a0a132 explicit typecast 2015-06-18 23:45:12 -05:00
Joseph Poirier 255b19e51b formatting 2015-06-18 23:20:10 -05:00
Joseph Poirier 011ee0f3eb explicit casts, add includes 2015-06-17 16:57:50 -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 e780f43222 fix the unary not (logical not) handling for issue #5, add tests 2015-06-14 17:54:48 -05:00
Joseph Poirier 63cd9d074b fix warning for cast to pointer from integer of different size, enhance conditional check of pointer to 'if' test 2015-06-14 17:27:41 -05:00
Joseph Poirier 62d1695632 Fixes issue #5 2015-06-14 17:03:55 -05:00
Joseph Poirier 09501d22fd Partial fix (e.g. if (somepointer) but not if (!somepointer)) for issue #5 2015-06-14 16:05:10 -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 890694a14a formatting 2015-06-14 04:46:15 -05:00
Joseph Poirier b83f9a66dc cleanup unused function params and FIXMEs 2015-06-14 02:17:11 -05:00
Joseph Poirier 463f086a33 changes after simple analysis, added FIXMEs 2015-06-14 02:08:10 -05:00
Joseph Poirier df817a54fc cast from long to int 2015-06-14 01:18:31 -05:00
Joseph Poirier cef18ad49e don't use an intermediate value for fp coercion 2015-06-14 01:16:34 -05:00
Joseph Poirier c753db4f59 fix from formatting 2015-06-13 19:07:57 -05:00
Joseph Poirier 6248fb2fb6 minor format changes 2015-06-13 19:00:49 -05:00
Joseph Poirier 6132405404 fix: issue #2, for real this time 2015-06-13 13:27:01 -05:00
Joseph Poirier e8b2139b26 fix: issue #2 2015-06-13 12:07:39 -05:00
Joseph Poirier f44d7556be minor formatting 2015-06-13 12:05:27 -05:00
Joseph Poirier b35b1005d8 explicit static prototypes 2015-06-13 10:26:33 -05:00
Joseph Poirier d865074892 malloc deref pointer to struct syntax, minor formatting changes 2015-06-13 09:41:41 -05:00
Joseph Poirier 8c18e1d061 respect 80 col mark when it makes sense 2015-06-10 19:27:30 -05:00
Joseph Poirier e52188dcda respect 80 col mark when it makes sense 2015-06-10 18:49:09 -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 cfb3a821b4 removed BROKEN_FLOAT_CASTS 2015-06-10 13:52:30 -05:00
Joseph Poirier b2d468537e remove NO_FP checks; assume at least softfp, remove NO_MODULUS 2015-06-10 13:38:54 -05:00
Joseph Poirier c063462464 reorder types 2015-06-10 13:07:58 -05:00
Joseph Poirier f26b78f29f PRINT_SOURCE_POS macro refactors 2015-06-10 12:33:16 -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 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