Commit Graph

2932 Commits

Author SHA1 Message Date
Stephen Chung
03c31a969a Refine examples. 2021-02-20 23:46:25 +08:00
Stephen Chung
54e26059dc Set correct position for system errors inside function calls. 2021-02-20 14:32:37 +08:00
Stephen Chung
72334f0c42 Lower release stack overflow protection limit. 2021-02-20 14:05:47 +08:00
Stephen Chung
0b0edc1818
Merge pull request #356 from schungx/master
Protection against mutating constants in plugin functions.
2021-02-20 00:06:37 +08:00
Stephen Chung
5285dad1a8 Fix feature build. 2021-02-19 23:48:11 +08:00
Stephen Chung
182fc2c3d1 Check for constant values passed to methods. 2021-02-19 23:13:53 +08:00
Stephen Chung
ac1b7debe9 Add pure function attribute. 2021-02-19 23:13:41 +08:00
Stephen Chung
724ad05916 Add wasm64 as potential target. 2021-02-19 15:50:48 +08:00
Stephen Chung
4e3ab7fa6a Add compiler guards for mutually-exclusive features. 2021-02-19 15:49:51 +08:00
Stephen Chung
b789c319e7 Rename serde_impl to serde. 2021-02-19 15:17:14 +08:00
Stephen Chung
1b33c60988
Merge pull request #355 from schungx/master
Built-in interop between FLOAT/Decimal and INT.
2021-02-19 12:02:14 +08:00
Stephen Chung
bd5ff457d2 Built-in interop between FLOAT/Decimal and INT. 2021-02-19 11:47:26 +08:00
Stephen Chung
7b8322b6e1 Scope implements IntoIterator. 2021-02-18 23:35:22 +08:00
Stephen Chung
61d7356e08 Reduce spelling warnings in codegen. 2021-02-18 17:42:49 +08:00
Stephen Chung
d2121e2183 Add operators between FLOAT/Decimal and INT. 2021-02-18 14:33:27 +08:00
Stephen Chung
9a9adbefcc Wrap eval errors in ErrorInFunctionCall. 2021-02-18 14:33:12 +08:00
Stephen Chung
f8a7ada2a2 Implement Add and AddAssign to Position, fix bug in Position::is_beginning_of_line 2021-02-18 10:47:57 +08:00
Stephen Chung
cc90b5ffab Remove unnecessary lifetimes. 2021-02-17 19:28:07 +08:00
Stephen Chung
c7b556b741 Bump version. 2021-02-17 16:53:35 +08:00
Stephen Chung
c943e22e1c
Merge pull request #354 from schungx/master
Add new float functions and operators with INT.
2021-02-17 16:19:19 +08:00
Stephen Chung
678d0f5e33 Fix f32_float build. 2021-02-17 14:05:35 +08:00
Stephen Chung
a2277d07f3 Add arithmetic operators between FLOAT and INT. 2021-02-17 13:06:47 +08:00
Stephen Chung
b2ca8c34d1 Add atan2 and hypot functions. 2021-02-17 12:27:27 +08:00
Stephen Chung
909d48caed Provide short-cuts to Decimal calculations. 2021-02-15 17:42:33 +08:00
Stephen Chung
ce3565271b
Merge pull request #353 from schungx/master
Add scientific notation and rounding functions to Decimal.
2021-02-15 17:15:18 +08:00
Stephen Chung
f5c2903071 Refine Decimal rounding. 2021-02-15 12:07:45 +08:00
Stephen Chung
40e4a92401 Support scientific notation for Decimal parsing. 2021-02-14 17:34:53 +08:00
Stephen Chung
1b35b55e4d
Merge pull request #352 from schungx/master
Add comparison operators and rounding methods to Decimal.
2021-02-13 23:35:31 +08:00
Stephen Chung
fc21756785 Add rounding functions to Decimal numbers. 2021-02-13 23:25:22 +08:00
Stephen Chung
224d93f167 Add comparison operators for Decimals. 2021-02-13 23:01:34 +08:00
Stephen Chung
61a01ea957 Add comments to Union. 2021-02-13 23:01:26 +08:00
Stephen Chung
013f8553a1
Merge pull request #351 from schungx/master
Add support for Decimal.
2021-02-13 22:27:11 +08:00
Stephen Chung
f498dc81a3 Fix codegen test. 2021-02-13 22:19:46 +08:00
Stephen Chung
3650b04c38 Add Decimal number type. 2021-02-13 20:57:56 +08:00
Stephen Chung
4fdd58f220 Change AST filters to Fn from FnMut. 2021-02-13 10:56:09 +08:00
Stephen Chung
2846d1b63f Change token to use FloatWrapper. 2021-02-12 23:07:28 +08:00
Stephen Chung
aea5ec50c9 Fix no-std build. 2021-02-11 21:46:11 +08:00
Stephen Chung
6f71367c15 Use scneitific notation when printing large or small floating-point numbers. 2021-02-11 21:28:07 +08:00
Stephen Chung
a2e7e3fc4e
Merge pull request #350 from schungx/master
Add scientific notation to floating-point numbers.
2021-02-11 19:44:44 +08:00
Stephen Chung
8ffb6c03b5 Add scientific notation to floats. 2021-02-11 19:20:30 +08:00
Stephen Chung
d49581356d Remove duplicated functions lookup for script function call. 2021-02-11 12:13:30 +08:00
Stephen Chung
645e1fe583 Add missing cases to Expr::walk. 2021-02-11 01:47:09 +08:00
Stephen Chung
bd633a2540
Merge pull request #347 from schungx/master
Use radians for trig and ** for exponentiation.
2021-02-10 12:55:58 +08:00
Stephen Chung
61638d6566 Use ** for power/exponentiation. 2021-02-10 12:41:27 +08:00
Stephen Chung
8c26b49a39 Change trig functions to take/return radians. 2021-02-10 12:10:50 +08:00
Stephen Chung
8f47f7c9e2 Add new floating-point functions. 2021-02-09 15:57:38 +08:00
Stephen Chung
812da25098
Merge pull request #346 from schungx/master
Fix bugs.
2021-02-09 14:51:15 +08:00
Stephen Chung
4815de3634 Fix codegen test error display. 2021-02-09 14:34:51 +08:00
Stephen Chung
88b01d6aba Refine docs. 2021-02-09 14:22:55 +08:00
Stephen Chung
2dd5aceb1d Fix panic of continue/break/return in try-catch block. 2021-02-09 14:22:21 +08:00