Commit Graph

  • dff7b0e9ac Another follow-up to 2f4f403 (lslcalc support) Sei Lisa 2016-12-15 04:12:02 +01:00
  • 9879d5f68b Follow-up to 2f4f403 (lslcalc support) Sei Lisa 2016-12-15 03:38:51 +01:00
  • 7fa691ead7 Activate 'optimize' option by default in lsloutput. Sei Lisa 2016-12-15 03:00:22 +01:00
  • 2f4f403535 Add lslcalc support. Sei Lisa 2016-12-15 02:42:12 +01:00
  • 43beb767f2 Fix llBase64ToString's behaviour with invalid UTF-8. Sei Lisa 2016-12-13 15:04:02 +01:00
  • e8201d6956 Err when invalid UTF-8 should have been generated in LSO mode. Sei Lisa 2016-12-13 14:26:48 +01:00
  • b593141f9f Fix UTF-8 in the surrogate range passing as good. Sei Lisa 2016-12-13 03:10:01 +01:00
  • ae984169ad Add llGetEnv to the partially computable functions. Sei Lisa 2016-12-12 22:58:12 +01:00
  • b4a8b57184 New upstream version of builtins.txt Sei Lisa 2016-12-08 02:18:27 +01:00
  • 397dc896fb Fix --optimizer-options=-optimize still applying some optimizations. Sei Lisa 2016-11-29 23:03:14 +01:00
  • 899b550133 Add tests for inf < inf and -inf < inf Sei Lisa 2016-11-29 22:56:00 +01:00
  • 52c38b0980 Fix embedded NUL in literal strings. Sei Lisa 2016-11-18 16:58:48 +01:00
  • da7b98b4ba Comment fix. Sei Lisa 2016-11-15 01:25:35 +01:00
  • 47013f87e2 Fix minor typo in a comment. Sei Lisa 2016-11-14 03:10:29 +01:00
  • 25fe5d5f3e New upstream version of builtins.txt Sei Lisa 2016-11-11 05:12:26 +01:00
  • 74115345f0 Fix blunder in operator priority Sei Lisa 2016-11-06 04:09:43 +01:00
  • 37483a72cb Fix void expressions in FOR loops. Sei Lisa 2016-07-10 01:29:11 +02:00
  • e60457f00e Fix rare bug with breakcont and label scope. Sei Lisa 2016-07-09 23:30:49 +02:00
  • 9d0eb307e1 Explain the purpose of PushScope() in loops when breakcont is active. Sei Lisa 2016-07-09 22:50:18 +02:00
  • a041faa7a8 Bump version. Sei Lisa 2016-06-28 03:51:43 +02:00
  • 30a07db4fb Mark a couple bugs found to not lose track, and add a regression test. Sei Lisa 2016-06-28 03:47:48 +02:00
  • 980adff9c8 Make the -O options case-insensitive. Sei Lisa 2016-06-28 03:45:39 +02:00
  • 0c3ad9b938 Change skippreproc -> processpre, add #pragma option processing. Sei Lisa 2016-06-28 03:20:21 +02:00
  • a13b1cb77e Expand warning text Sei Lisa 2016-06-27 22:38:19 +02:00
  • 6b45d4efcf Add comment on the validity of the RE for detecting certain defines. Sei Lisa 2016-06-27 21:03:18 +02:00
  • 5ad68906e9 Name the groups of keywords. Sei Lisa 2016-06-27 20:33:47 +02:00
  • 8488254d53 Generate labels sequentially rather than randomly. Sei Lisa 2016-06-27 20:32:59 +02:00
  • 79dff25769 Update copyright years of some files; add legalese to seftable.txt Sei Lisa 2016-06-27 19:59:39 +02:00
  • 8fc4240142 Ignore preprocessor commands while scanning for globals. Sei Lisa 2016-06-27 18:50:31 +02:00
  • 633c31df6c The RE wasn't correct, since we want to isolate the directive. Sei Lisa 2016-06-27 18:37:28 +02:00
  • fb83279706 Add infrastructure to process preprocessor directives. Sei Lisa 2016-06-27 16:50:09 +02:00
  • ee091c63a6 Someone's been misusing Python's re.match... O:) Sei Lisa 2016-06-26 22:33:10 +02:00
  • 893bcf177b Remove dead code. Sei Lisa 2016-06-26 17:21:52 +02:00
  • 402791435f Update SEF list. Sei Lisa 2016-06-26 00:48:29 +02:00
  • dcb5a1db51 New upstream version of builtins.txt Sei Lisa 2016-06-26 00:47:20 +02:00
  • 05511e6870 New upstream version of builtins.txt Sei Lisa 2016-06-06 21:22:58 +02:00
  • 3ff4ad3110 New upstream version of builtins.txt Sei Lisa 2016-06-02 05:37:33 +02:00
  • f32489a5a8 Distinguish indeterminates and improve infinities in output. Sei Lisa 2016-05-26 19:45:31 +02:00
  • a067cc6b7f Test program no longer needs a tolerance. Also add more tests. Sei Lisa 2016-05-21 04:28:57 +02:00
  • 51a7e6d199 Fix bug with reduction, and remove useless code. Sei Lisa 2016-05-21 04:16:34 +02:00
  • 9cf9478270 Improve the (in)accuracy of llSin, llCos, llTan Sei Lisa 2016-05-21 03:56:27 +02:00
  • e40c52075b Make ForceFloat more robust on non-float input. Sei Lisa 2016-05-21 03:10:31 +02:00
  • 13663ff077 -0x1p63 is not included in the valid range of trig functions. Sei Lisa 2016-05-21 02:50:55 +02:00
  • 7b70bfe55f Fix precision error in llTan special values. Sei Lisa 2016-05-21 02:25:05 +02:00
  • 4172f02439 One more way to transform a float to single (commented out) Sei Lisa 2016-05-21 01:59:05 +02:00
  • 94ea0a1140 Add two more tests to be more confident on NaN/Indet comparison. Sei Lisa 2016-05-15 20:08:09 +02:00
  • c2560303dc Improve NaN tests to properly check for indeterminates. Sei Lisa 2016-05-15 20:00:04 +02:00
  • 60f257279b Use math.copysign to distinguish indeterminates Sei Lisa 2016-05-15 19:55:45 +02:00
  • b06ac33b5f Fix misspelling in the latest commit. Sei Lisa 2016-05-15 18:44:45 +02:00
  • b5dc38e9e6 Add more NaN-related tests, make NaN checking stricter Sei Lisa 2016-05-15 18:25:13 +02:00
  • 23b27bd3af Produce more math errors in division Sei Lisa 2016-05-15 18:21:24 +02:00
  • 28a8f0757c Check the scope as well as the label name, for academic correctness' sake. Sei Lisa 2016-05-08 04:14:32 +02:00
  • 91ad438bb7 Be a bit smarter when optimizing out default labels. Sei Lisa 2016-05-08 03:55:55 +02:00
  • 3669bbb06e Only add a label and a jump for default and break when necessary. Sei Lisa 2016-05-07 04:37:58 +02:00
  • b7e6e6f7b1 Fix bug with tab handling. Sei Lisa 2016-05-07 03:18:50 +02:00
  • 95bd3209be Fix reporting the last line on error if it doesn't end in \n. Sei Lisa 2016-05-07 02:42:29 +02:00
  • 697e80cb16 Rather than reproduce the broken behaviour, throw an error on missing default. Sei Lisa 2016-05-07 02:38:54 +02:00
  • b1b84a123e Add broken FS switch behaviour for compatibility. Sei Lisa 2016-05-06 20:15:46 +02:00
  • bb198b3745 Add a (currently disabled) viable and tested alternative to c_float for F32. Sei Lisa 2016-05-06 20:11:41 +02:00
  • 41149a17aa Report a type mismatch in globals in a more meaningful position. Sei Lisa 2016-04-04 13:58:25 +02:00
  • dc98e477d7 Add 'nofoldtabs' option to disable warning when a function generates tabs Sei Lisa 2016-04-01 20:48:33 +02:00
  • 5804a9a610 Refine the test for tabs so that it checks strings in lists too. Sei Lisa 2016-03-30 21:01:16 +02:00
  • 7283842b3a Make an error message more explicit. Sei Lisa 2016-03-30 18:25:17 +02:00
  • b0e5a50a59 Fix discrepancy with LSL in llCSV2List. Sei Lisa 2016-03-25 20:52:48 +01:00
  • 14f70c93b4 Fix bug in llCSV2List when there's no space after comma but there's a space in the value. Sei Lisa 2016-03-25 20:44:59 +01:00
  • daae0ec518 New upstream version of builtins.txt Sei Lisa 2016-01-22 20:56:20 +01:00
  • 661853be53 Fix llRot2Axis to negate the axis when s is negative. Sei Lisa 2016-01-22 20:54:43 +01:00
  • 144fa5b00e New upstream version of builtins.txt Sei Lisa 2016-01-16 05:39:52 +01:00
  • c555a01a48 It's possible to enter Infinity as a float constant, so do that rather than the (float)"inf" kludge. It remains for NaN though. Sei Lisa 2016-01-06 01:21:04 +01:00
  • 881a33a427 Remove unnecessary line Sei Lisa 2016-01-03 01:30:22 +01:00
  • cfb9dee941 Parse_unary_postfix_expression shouldn't accept the token (i.e. advance to the next) if it's not processed. This caused a mismatch between the reported syntax error and the position where it should have been detected. Fixed. Sei Lisa 2016-01-03 01:20:05 +01:00
  • ceb442e931 Improve error reporting, by printing the errored line and a caret (^), taking care to display the beginning of the token the error is at. Sei Lisa 2016-01-02 03:39:47 +01:00
  • f97cef2a38 Add -T / --timestamp option to insert the generation timestamp Sei Lisa 2015-12-25 19:04:24 +01:00
  • 5a2c7278cd New upstream version of builtins.txt Sei Lisa 2015-12-16 01:03:14 +01:00
  • 9469855769 Document the internal behaviour of run_time_permissions under LSO Sei Lisa 2015-12-11 02:28:51 +01:00
  • 91201f1e30 Remove old TODO and add new one. Sei Lisa 2015-12-09 05:06:21 +01:00
  • 055663b79d Another str -> repr change affecting a float. Sei Lisa 2015-12-09 03:43:59 +01:00
  • 025f0f8440 str() doesn't return a fully-expanded float. repr() does. Sei Lisa 2015-12-09 03:37:01 +01:00
  • 6ec2667bf3 Refine comments Sei Lisa 2015-09-24 22:02:46 +02:00
  • 57cacf29bb Return a float when typecasting returns zero (fixes inconsistent type) Sei Lisa 2015-09-22 14:14:26 +02:00
  • aee638e900 Return denormals as 0 in (float)"number". Found by Pedro Oval. Sei Lisa 2015-09-21 21:15:48 +02:00
  • 2d72b8e198 Fix llList2CSV with -nan in vector and quaternion (with test case). Sei Lisa 2015-09-09 18:14:27 +02:00
  • 2044f888d4 Fix bug where (typecast)[single_expr] was output as (typecast)(list)single_expr, producing a syntax error in the output for lack of extra parentheses. Sei Lisa 2015-09-09 04:14:55 +02:00
  • 6b7b366f63 Fix llRot2Euler exception Sei Lisa 2015-09-08 03:47:00 +02:00
  • bc4f574b33 Managed to deal with the '-nan' case in llList2CSV. Add test cases. Sei Lisa 2015-09-07 02:56:44 +02:00
  • 0122d6ed70 On second thought, disable explicitcast for list+nonlist and nonlist+list entirely, as they are not the same as list+(list)nonlist and (list)nonlist+list anyway. Sei Lisa 2015-09-04 06:26:01 +02:00
  • d8649deebd nonlist + list was returning the type of the nonlist element. Fixed and added a regression test. Sei Lisa 2015-09-04 05:56:05 +02:00
  • aa74e6ed64 Sadly, Python can't represent -nan, even though llList2CSV can display it. Add a note to that effect. Sei Lisa 2015-09-04 05:46:18 +02:00
  • 15f1a07a72 There were more translated events. After an exhaustive analysis this is the definitive list. Sei Lisa 2015-08-21 03:35:20 +02:00
  • e264260477 Two events produce different internal names than the event name itself. This was causing the reused names for these events to increase memory usage instead of reducing it. Fixed. Sei Lisa 2015-08-21 01:20:28 +02:00
  • f8a6d3d86c Reorganize so that warningPass is always set at least once when constfold is set. Sei Lisa 2015-08-19 05:41:21 +02:00
  • 8a8e255239 Tidy up the code a bit more after that last fix. Sei Lisa 2015-08-18 21:16:46 +02:00
  • ed6603c3cd Remove unused import. Sei Lisa 2015-08-17 05:21:34 +02:00
  • 6b2c5b7e39 Fix preprocessor piping. Found by SungAli, diagnosed by SungAli and Sei Lisa. Sei Lisa 2015-08-17 04:56:32 +02:00
  • cd9bfd426e Update list of pre-allocated keywords. Sei Lisa 2015-07-26 00:13:00 +02:00
  • 1636e56266 The llGetListLength optimization can be applied to arbitrary expressions. Sei Lisa 2015-07-13 07:16:32 +02:00
  • d35ab22c42 New upstream version of builtins.txt. Sei Lisa 2015-07-09 21:22:02 +02:00
  • 1a67db64dc Get rid of builtins.txt.dat by adding a parameter to the parser ctor. Sei Lisa 2015-07-09 20:35:14 +02:00
  • 1160fea8cf Fix extendedtypecast problem with negative constants after typecasts. Sei Lisa 2015-06-23 06:35:27 +02:00
  • 4cc268b574 Fix parenthesizing of expressions having ~ or ! Sei Lisa 2015-06-17 18:30:32 +02:00