Dave Halter
|
eeac77d360
|
Also support the not operator.
|
2014-08-12 18:09:59 +02:00 |
|
Dave Halter
|
8ed89e8245
|
implement !=, ==, is, is not operators to work in if statements (they also work in in non if contexts and return a bool value.), includes tests.
|
2014-08-12 17:59:19 +02:00 |
|
Dave Halter
|
5e9d9573d5
|
Don't warn on addition of an int literal plus an unknown int number.
|
2014-07-22 16:44:10 +02:00 |
|
Dave Halter
|
f7c8c43fbc
|
check not only - but also + for numbers.
|
2014-07-22 16:18:57 +02:00 |
|
Dave Halter
|
852cdad754
|
Operator fixes. Subclass of Simple, now.
|
2014-07-22 16:02:34 +02:00 |
|
Dave Halter
|
15f42d93d7
|
it should be possible to find the origin of an operation, if it's a faulty one (static analysis)
|
2014-07-22 14:52:58 +02:00 |
|
Dave Halter
|
50ceef6e09
|
1 + '1' TypeErrors are now detected, but not shown in the right place
|
2014-07-22 10:44:56 +02:00 |
|
Dave Halter
|
bdcbac160b
|
fix string/array (sequence) multiplications with integer.
|
2014-06-26 00:49:56 +02:00 |
|
Dave Halter
|
c6aea92753
|
fix issues with tokens in expression list
|
2014-06-10 11:03:36 +02:00 |
|
Dave Halter
|
cb430c4c36
|
add a merged array class to account for array additions
|
2014-06-06 02:51:48 +02:00 |
|
Dave Halter
|
77baabb93b
|
% operation returned both left and right side, but only the left side is really important.
|
2014-05-19 13:26:12 +02:00 |
|
Dave Halter
|
bc7896f93d
|
unicode issues in usage matching
|
2014-04-29 12:20:25 +02:00 |
|
Dave Halter
|
c790f88678
|
speed up precedences.
|
2014-04-25 13:28:01 +02:00 |
|
Dave Halter
|
4ae99256be
|
py3.0, py3.1 and py32 don't support unicode literals. Support those.
|
2014-04-22 16:00:13 +02:00 |
|
Dave Halter
|
b685101efb
|
Nothing + string literal should not result in string literal but in a string type (because we don't know how the string literal could have looked like
|
2014-04-22 15:16:48 +02:00 |
|
Dave Halter
|
eaf54942fc
|
fix a slice issue with precedences.
|
2014-04-21 02:30:17 +02:00 |
|
Dave Halter
|
ab154d46d5
|
fixed a very nasty problem with exponential growth in precedence for loops
|
2014-04-20 12:42:53 +02:00 |
|
Dave Halter
|
4bc55be103
|
significant speedup due to compiled caching
|
2014-04-13 16:31:38 +02:00 |
|
Dave Halter
|
09854ae6ca
|
negative factors like -1 are now evaluated
|
2014-04-04 15:07:45 +02:00 |
|
Dave Halter
|
f7e236971b
|
moved the input of get_index_types to a more typical type system
|
2014-04-04 12:09:46 +02:00 |
|
Dave Halter
|
af7814c6d4
|
enable assignment operators and add substraction support for numbers
|
2014-03-10 16:51:47 +01:00 |
|
Dave Halter
|
b22c9c96f2
|
string additions also work now - be prepared #24!
|
2014-03-09 12:36:17 +01:00 |
|
Dave Halter
|
70e1970f40
|
plus on numbers is now basically working
|
2014-03-09 12:27:03 +01:00 |
|
Dave Halter
|
f26e3770dd
|
ternary operator implementation, precedences complete and working, now
|
2014-03-09 02:41:07 +01:00 |
|
Dave Halter
|
e2832e1172
|
fix multiplication of arrays with precedences
|
2014-03-09 02:23:38 +01:00 |
|
Dave Halter
|
61fa9b7fb4
|
start using precedences, working good with only a few test fails
|
2014-03-09 02:10:59 +01:00 |
|
Dave Halter
|
48dd8f9cb0
|
slice precedences should be working as well.
|
2014-03-09 01:05:46 +01:00 |
|
Dave Halter
|
11346d0901
|
get the 'not' priorities right for precedences
|
2014-03-08 03:14:05 +01:00 |
|
Dave Halter
|
3559dba7ea
|
to the power of precedences
|
2014-03-08 03:05:38 +01:00 |
|
Dave Halter
|
0a253b4651
|
MultiPart string precedences seem to be working now
|
2014-03-08 02:52:26 +01:00 |
|
Dave Halter
|
0dcc924cf8
|
precedence working for some simple cases (and invalid statements)
|
2014-03-08 02:24:25 +01:00 |
|
Dave Halter
|
f2e2a684d5
|
precedence tests and a parse_tree method for Precedence objects
|
2014-03-07 15:05:28 +01:00 |
|
Dave Halter
|
77bfb0fb7b
|
basic precedence algorithm - not tested yet
|
2014-03-07 14:40:57 +01:00 |
|
Dave Halter
|
32ccec8447
|
precedence stuff is not working yet, but need to merge first because of potential parser changes
|
2014-02-12 11:08:48 +01:00 |
|
Dave Halter
|
cd1660dc53
|
first succeeding precedence tests
|
2014-01-31 11:12:28 +01:00 |
|