Commit Graph

39 Commits

Author SHA1 Message Date
Vincent Burns
aec9195c95 Applied Araq's suggestions for c2nim 2014-01-14 16:35:00 -05:00
Vincent Burns
5395347582 removed hack for return statement 2014-01-14 12:05:14 -05:00
Vincent Burns
d35dedf041 Slightly better type parsing for parameters and cast expressions 2014-01-14 11:22:59 -05:00
Vincent Burns
d9a61c13dd Fix for expression parsing, 'new' is a valid C symbol 2014-01-13 02:01:10 -05:00
Vincent Burns
5f905865be Fix for some comments during if statements
added test files
2014-01-13 01:51:36 -05:00
Vincent Burns
58855c2fc7 Support more proper do..while statements 2014-01-13 01:42:26 -05:00
Vincent Burns
97eaeb3aec for statements support comma expressions 2014-01-13 01:16:24 -05:00
Vincent Burns
570f8b21e1 New expression parser
tests pass
2014-01-12 17:13:23 -05:00
Vincent Burns
c5bd98b7db Properly lex floating constants
digit-sequence? '.' digit-sequence exponent-part?
digit-sequence '.' exponent-part?
exponent-part: [eE] [+-]? digit-sequence
2014-01-12 13:23:52 -05:00
Vincent Burns
2dc91cb4d5 Lex '\xHH' character constants 2014-01-12 12:53:25 -05:00
Vincent Burns
0a0fec4a5c Added spliceHeader option to c2nim
parse a header file first, then the source. completing a c 'module'
2014-01-12 12:48:06 -05:00
Araq
e2648fa3fb case consistency part 8 2013-12-28 01:47:40 +01:00
Araq
0a851c869f c2nim: added some scope operator parsing 2013-09-11 00:07:39 +02:00
Araq
db19b18241 cn2im: basic C++ support 2013-09-10 00:40:06 +02:00
Araq
46e564f9ee fixes #440 2013-05-18 10:12:01 +02:00
Araq
b75d23b5e7 c2nim compiles again 2013-05-15 10:19:51 +02:00
Araq
d97504d6ef c2nim, pas2nim compile again 2013-05-07 17:19:36 +02:00
Grzegorz Adam Hankiewicz
72a3e21f28 Removes executable bit for text files. 2013-03-16 23:53:07 +01:00
Araq
2782e88591 fixes #323 2013-03-16 20:07:36 +01:00
Araq
9fc2bfa799 codegen produces better code for complex assignments 2013-02-24 03:51:45 +01:00
Araq
9ef367db62 fixed a newly introduced c2nim bug; many untested improvements to the FFI at compile time 2012-12-31 17:53:37 +01:00
Zahary Karadjov
d9d82fb0af syntax compatibility between do blocks and stmt blocks
See the section `do notation` in the manual for more info.

* nkMacroStmt has been removed
   Macro statements are now mapped to regular nkCall nodes.
   The support for additional clauses (such as else, except, of, etc)
   have been restored - they will now appear as additional arguments
   for the nkCall node (as nkElse, nkExcept, etc nodes)

* fixed some regressions in the `is` operator and semCompiles
2012-10-04 15:37:26 +03:00
Araq
ca447be43e bugfix: c2nim and pas2nim work again 2012-09-26 02:22:22 +02:00
Araq
1279bd2855 c2nim and system.nim now agree on a C type mapping 2012-07-15 10:00:34 +02:00
Araq
34d3c042af c2nim, pas2nim compile again 2012-02-29 00:04:34 +01:00
Araq
1a2ccd6a23 fixes #93 2012-01-29 01:55:56 +01:00
Araq
4f1b89c30c year 2012 for most copyright headers 2012-01-02 23:07:35 +01:00
Araq
52e8b597e4 c2nim: bugfix: 'type x[10];' was not parsed properly 2011-12-30 13:55:08 +01:00
Araq
73919e3082 GC stack scanning cares about interior pointers 2011-12-30 11:03:01 +01:00
Araq
4487b614e1 c2nim compiles again 2011-12-12 19:11:31 +01:00
Zahary Karadjov
e4e74034c2 path canonicalization and proper project relative paths 2011-12-09 04:40:59 +02:00
Araq
fc9fdc2b9d cleaned up configuration file handling and documented the new behaviour 2011-11-30 00:53:41 +01:00
Araq
e9b7d5e68e c2nim: bugfix: parsing of typedef'ed function pointers 2011-09-28 00:41:40 +02:00
Keita Haga
19f6750b92 c2nim,pas2nim: use the stdout.writeln to display the "unknown option" message 2011-07-29 20:21:29 +09:00
Keita Haga
d1c49caa68 c2nim,pas2nim: bugfix: --out:FILE option does not work as documented 2011-07-29 20:10:55 +09:00
Araq
fe5df368c1 0.8.12 bugfix: some files not in download package 2011-07-11 21:07:31 +02:00
Araq
4591ab0f12 c2nim compiles again 2011-04-23 23:51:39 +02:00
Araq
36c67455d4 got rid of some arcane module names 2011-04-21 00:54:44 +02:00
Araq
cd292568d7 big repo cleanup 2011-04-12 01:13:42 +02:00