Stefan Eilers and Alexander Ljungberg
61b19a1df5
Fix "jake release"
2013-02-13 12:24:58 +00:00
Alexander Ljungberg
181c4ad3c6
Support IBOutlet as a synonym to @outlet.
...
Without this fix the new compiler would treat IBOutlet as the type and expect the next token to be the ivar name.
This fix make the new compiler treat IBOutlet the same as @outlet.
2013-01-30 15:48:30 +00:00
Antoine Mercadal
1080ace4cd
Make the ugly fix for rhino a little bit uglier, but makes build on linux works
2013-01-25 10:11:07 -08:00
Martin Carlberg
1280b6e13e
Fixed new compiler to load frameworks for the environment that it is building and not for the environment that is running
2013-01-23 15:25:13 +01:00
Martin Carlberg
201c7637f6
Fixed new compiler to output better formatted error messages
2013-01-22 15:38:02 +01:00
Martin Carlberg
2952812a4b
Fixed uninitialized warning message in new compiler when using rhino
2013-01-22 10:32:37 +01:00
Alexander Ljungberg
5ec9cf7faf
Fixed: "in" could not be a parameter in a message.
...
With the new compiler, messages such as `[a in:b]` could not be sent, the "in:" parameter throwing an unexpected token error. This was true both if "in" was the first argument or any of the subsequent parameters (such as in `[a something:X in:Y]`).
2013-01-21 02:11:51 +00:00
Alexander Ljungberg
cc05df412e
Fixed: objjc didn't print some errors.
...
Before this fix, certain errors during compilation such as not being able to load a file, would cause the compilation to fail without stating what went wrong.
This fix prints such errors and avoids crashing later when the result of the compilation is undefined.
2013-01-21 01:08:28 +00:00
Alexander Ljungberg
e7f0400580
Formatting.
2013-01-20 18:24:48 +00:00
Alexander Ljungberg
ad109532be
It's enough to read flattensSources once.
2013-01-20 18:09:55 +00:00
Martin Carlberg
586c9d3139
Fixed "Can't find superclass 'MyClass' <Context File: Accessors>" problem when
...
compiling accessors to class with superclass in same file.
2013-01-18 21:23:11 +01:00
Martin Carlberg
6fbab322cf
Fixed warning messages in compiler
2013-01-18 14:25:05 +01:00
Martin Carlberg
e78f211e8a
Added @class and @global declaration and will now make a warning if class or global is not declared.
2013-01-14 18:36:39 +01:00
Martin Carlberg
77d66fa0c9
Fix for: Track spaces will take the spaces after the next token instead of the current. Also do "delete" of property instead of setting it to null for cleaner AST tree.
2013-01-13 22:08:42 +01:00
Martin Carlberg
a652fdf8d2
Fix for: Track comments will take the comment after the next token instead of the current. Also do "delete" of property instead of setting it to null for cleaner AST tree.
2013-01-13 22:08:29 +01:00
Aparajita Fishman and Martin Carlberg
85481225a3
Use a better error message for missing semicolons, trailing whitespace elimination
2013-01-13 22:06:18 +01:00
Martin Carlberg
3dc6a30c4c
Code clean up
2013-01-11 20:36:19 +01:00
Martin Carlberg
f076b05e7e
More information: Shows that the new compiler is used when doing "objjc --help". New output: "Usage (objjc 2.0):…"
2013-01-11 08:06:51 +01:00
Martin Carlberg
7c71cd1f80
The new compiler takes care of hoisted variables
2013-01-10 19:30:34 +01:00
Martin Carlberg
c192f3b47b
Fix to make the Cappuccino framework compile with rhino
2013-01-10 11:21:45 +01:00
Martin Carlberg
89da16afec
Fixed objjc to output compiled source not the input source
2013-01-09 14:58:22 +01:00
Martin Carlberg
1dfc77a4ba
Fixed objjc to use new acorn based compiler
2013-01-09 14:12:58 +01:00
Martin Carlberg
4fb8fa1311
Code clean up
2013-01-09 14:03:38 +01:00
Martin Carlberg
0dd98b56bc
"self." is only added to instance variables when compiling an instance method
2013-01-09 10:21:16 +01:00
Martin Carlberg
0a573f9da1
Removed unused 6th parameter
2013-01-09 09:29:43 +01:00
Martin Carlberg
957b34d169
Added the option trackSpaces to attach spacesBefore and spacesAfter properties to AST nodes.
2013-01-08 22:23:34 +01:00
Martin Carlberg
79d2ac0566
Fixed some comments and removed unwanted spaces
2013-01-08 22:19:55 +01:00
Martin Carlberg
547f9ff61f
Merge with latest from Acorn master
2013-01-08 22:18:19 +01:00
Martin Carlberg
9f0da2ec41
Fixed spelling error
2013-01-08 22:13:36 +01:00
Martin Carlberg
c755dc3ed9
Added some more detailed error messages in parser
2013-01-08 17:00:54 +01:00
Martin Carlberg
8100cdb17f
Fixed "Can't find variable: ObjJCompiler" error
2013-01-07 23:13:54 +01:00
Martin Carlberg
d49e78c43e
Removal of old compiler
2013-01-07 20:29:56 +01:00
Martin Carlberg
cf46768ac7
Removal of logs
2013-01-07 20:29:45 +01:00
Martin Carlberg
cfe718f4ef
Handle preprocessor lines like "#pragma"
2013-01-07 20:29:35 +01:00
Martin Carlberg
bf32b90702
Allow signed, unsigned, char, short, int and long to be an identifier
2013-01-07 20:29:13 +01:00
Martin Carlberg
9cb14d6db3
Added new faster compiler based on acorn parser
2013-01-07 09:59:10 +01:00
Martin Carlberg
140cf0debe
Code cleanup
2013-01-07 09:55:12 +01:00
Martin Carlberg
d5748474d0
Forgot some more lines
2012-12-20 22:55:58 +01:00
Martin Carlberg
2277fb04b9
Missed to commit some stuff for scope handling
2012-12-20 18:19:39 +01:00
Martin Carlberg
78b2d30905
Added better support for scope
2012-12-20 18:01:47 +01:00
Martin Carlberg
ed81d75815
Removes #pragma lines
2012-12-20 17:49:23 +01:00
Martin Carlberg
ac3a399df3
Set to use new compiler when compiling with jake
2012-12-20 15:20:38 +01:00
Martin Carlberg
619f90c677
Removed debug stuff
2012-12-20 15:20:12 +01:00
Martin Carlberg
0f3d5f4b10
Added support to choose which compiler should be used when compiling in the browser. Default is old compiler but add "ObjJCompilerSetUsedVersion("objj_compiler2");" in the index.html (and/or index-debug.html) to use new compiler in browser.
2012-12-20 14:26:49 +01:00
Martin Carlberg
26be5bf264
Better error message when importing file that is not found
2012-12-20 14:23:54 +01:00
Martin Carlberg
803c8ce6b5
A little code clean up.
2012-12-17 17:14:33 +01:00
Martin Carlberg
897adf27f0
Fixed import statements in nib2cib, bug in load system and some more fixes to test cases
2012-12-17 14:57:18 +01:00
Martin Carlberg
b52217e8a0
Tried to make the import mess a little better. Fixed a lot of bugs. Changed some class names in the test cases. Looks like all the tests are being run in the same space. Has to look into this…..
2012-12-17 00:40:26 +01:00
Martin Carlberg
c297e926f9
Compiler now works with jake and can compiler the whole Cappuccino framework. A lot of test cases still fail
2012-12-16 17:38:47 +01:00
Martin Carlberg
59fa5c27b6
Added support for new compiler when loading objj files in the browsers
2012-12-15 23:35:36 +01:00