Commit Graph

2139 Commits

Author SHA1 Message Date
ReneSac
6a528bc7e9 Consider #!strongSpaces for keyword operators too.
When #!strongSpaces is on, every  operator affected by it gains priority higher than any operator not affected by it. This includes comparison operators, addition, etc.
It seems that counting spaces for keywords operators don't break anything in the parser. Of course, they can't have 0 spaces between their operands, but at least their precedence will work accordingly to their 1+ spaces.
2015-04-08 01:00:14 -03:00
Araq
5bb3534f10 fixes #2427 2015-04-06 23:50:09 +02:00
Araq
05e39cf6ad overloading of '=' works 2015-04-06 23:21:52 +02:00
Araq
78f371c03a first implementation of overloading of '='; missing: rewriting let/var sections 2015-04-06 23:21:51 +02:00
Andreas Rumpf
99e0fb90e0 Merge pull request #2428 from arnetheduck/comp-lib-ropes
Comp lib ropes
2015-04-06 00:32:08 +02:00
Araq
a83286192f GC-safety error messages are useful now 2015-04-04 01:19:32 +02:00
Araq
f767e1749e don't store the scope for routines 2015-04-04 01:19:31 +02:00
Araq
f8235cbe2e preparations for better gcsafety messages 2015-04-04 01:19:29 +02:00
Araq
d5f40ee70d better error message for implicit pragmas 2015-04-04 01:19:29 +02:00
Jacek Sieka
0f131b9f46 ropes: remove more unnecessary checks 2015-04-03 23:30:42 +08:00
Jacek Sieka
d7a42641ab compiler_ropes: remove unnecessary length check
frmt[frmt.len] isn't an out-of-bounds access for strings (!)
2015-04-03 23:21:19 +08:00
Jacek Sieka
71e785904b compiler_ropes: deprecate old function names 2015-04-01 22:32:15 +08:00
Jacek Sieka
a9ef5bf459 compiler_ropes: TRope -> RopeObj, PRope* -> Rope* 2015-04-01 22:32:15 +08:00
Jacek Sieka
bcdb5b0836 compiler_ropes: toRope -> rope 2015-04-01 22:32:15 +08:00
Jacek Sieka
aafbe5c866 ropes: make lib & compiler frmt more similar, fix out-of-bounds accesses in lib ropes 2015-04-01 22:32:15 +08:00
Jacek Sieka
91f42a2943 compiler_ropes: ropef -> %, appf -> addf 2015-04-01 22:32:15 +08:00
Jacek Sieka
171996465f compiler_ropes: ropeEqualsFile -> equalsFile, no more max rope component length
read file data in bigger blocks, avoiding lots of file api calls

also removed crc step - seems easier to simply compare the bytes rather
than calculating two crc's
2015-04-01 22:32:15 +08:00
Jacek Sieka
80ee28daf7 compiler_ropes: add & and add
Invokations still need to be updated, but that's a lot of changes, so
save for later
2015-04-01 22:32:15 +08:00
Jacek Sieka
c40249cd43 compiler_ropes: ropeToStr -> $ 2015-04-01 22:32:15 +08:00
Jacek Sieka
b4e4ea8d1b compiler_ropes: don't expose newRope 2015-04-01 22:30:39 +08:00
Jacek Sieka
97d2df9bac compiler_ropes: ropeLen -> len 2015-04-01 22:30:39 +08:00
Araq
57fa8c6d3f bugfixes for C++ codegen 2015-04-01 15:34:15 +02:00
Araq
edc4940c26 doc updates; fixes 'inc' for 'char' 2015-03-29 13:16:22 +02:00
Araq
165619552a fixes #2355 2015-03-28 00:47:03 +01:00
Araq
2b80d75aa2 fixes #2420; negative indexing for slicing is obsolete (breaking change!) 2015-03-28 00:15:04 +01:00
Araq
46fb0e0bac fixes another regression 2015-03-27 11:57:03 +01:00
Billingsly Wetherfordshire
1ba785dd74 set type for symbols from getType() 2015-03-27 01:43:28 -05:00
Araq
e80840c40a preparations for dealing with the 'echo $foo' gotcha 2015-03-27 02:14:27 +01:00
Araq
7720c0aafd fixes a regression related to the new typeOf parsing 2015-03-27 02:13:51 +01:00
Araq
ed0d9e271d disallow negative indexing 2015-03-27 01:30:06 +01:00
Araq
5d63ecb3a4 implemented a[^1] notation 2015-03-26 02:12:38 +01:00
Simon Hafner
36b6bfaf78 cannot gen symbol -> must be compile time 2015-03-26 05:04:12 +05:00
Araq
e680e43fc2 fixes #2405 2015-03-25 14:50:08 +01:00
Araq
43228a704f fixes #2404 2015-03-25 13:21:50 +01:00
Araq
94f2d639b1 fixes #2401 2015-03-25 13:05:32 +01:00
Araq
117903a6ae fixes #2400 2015-03-25 13:02:15 +01:00
Araq
019faf00bf fixes #2397 2015-03-25 11:50:38 +01:00
Araq
178a85cd25 fixes #1700 2015-03-24 23:07:19 +01:00
Yuriy Glukhov
9b0c704393 uint support for JS. 2015-03-24 11:48:24 +02:00
Araq
e8b4217c3b minor todo update 2015-03-23 13:10:20 +01:00
Araq
3bcafb1c3a concept example from the manual now works again 2015-03-23 13:10:19 +01:00
Araq
f6ff01572e breaking change: 'concept' is now a keyword and used instead of 'generic' 2015-03-23 13:10:18 +01:00
Araq
bba551fd1c fixes #2390 2015-03-23 00:09:35 +01:00
Araq
765f274629 fixes #1783 2015-03-23 00:09:34 +01:00
Araq
e7d7097919 fixes #1787 2015-03-22 10:47:07 +01:00
Araq
36acac3000 fixes #1717, fixes #2324 2015-03-22 09:31:16 +01:00
Araq
a541be8935 prepare for upcoming parsing change of unary operators 2015-03-22 09:31:15 +01:00
Andreas Rumpf
838f398378 Merge pull request #2370 from flaviut/jsondoc-fixes
Fix segfault in jsondoc
2015-03-22 08:56:56 +01:00
Araq
ca6906d85b fixes long standing parsing issue with command syntax 2015-03-22 01:38:14 +01:00
Araq
0d804c2052 fixes #2266 2015-03-22 01:38:14 +01:00