1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
Commit Graph

43 Commits

Author SHA1 Message Date
fde934cd93 builtin: optimize hex() (#11261) 2021-08-22 11:10:24 +03:00
cbefe6c32f parser: warn about old use of typeof (#7923) 2021-01-07 20:32:02 +01:00
abc98c273c parser: require assign on type alias (#6477) 2020-09-25 12:02:32 +02:00
5086fd537c checker: prompt error on implicit int overflow by literal (#6410) 2020-09-20 16:29:01 +02:00
c1f04d8c72 builtin: fix min value for int_str (#6411) 2020-09-18 12:56:16 +03:00
055117dc5f builtin: make byte.hex() two digits format (#5886) 2020-08-01 23:06:08 +02:00
8b66816bdc scanner: more checks for _ as num_sep (#5992) 2020-07-28 16:09:19 +10:00
f3a505b558 scanner: add check for _ in num literals (#5849) 2020-07-16 17:29:07 +03:00
c3bdacbf04 doc: add info about _ separator in literals (#5823) 2020-07-14 15:46:13 +02:00
3703ade9f1 doc: add a Numbers section. Add tests for 0b prefixed integer literals too 2020-07-14 11:10:43 +03:00
cf9498ef6b cgen: use standard checks for float comparisons 2020-06-04 19:47:41 +02:00
013fdb8a4b checker: restrict numeric promotions to cases where no data is lost 2020-05-27 05:42:48 +02:00
fd4d28b7b6 tests: update for stricter type checks 2020-05-24 21:07:32 +02:00
f44a40eee0 checker: check incorrect names 2020-05-16 16:12:23 +02:00
a72f3ed0c7 builtin: voidptr.str() and byteptr.str() 2020-05-04 13:20:18 +02:00
0c63f5c80d builtin: test left/right shift precedence 2020-04-14 19:38:11 +02:00
eb78396307 parser: fix prefix precedence 2020-04-08 13:53:11 +02:00
3bad02abdd cgen: do comparison of f32/f64 values for == and != by calling f64_eq(a,b) and f64_ne(a,b) 2020-04-08 03:51:06 +03:00
6309e699e5 builtin: add operator precedence test 2020-04-02 19:02:49 +02:00
83289d74a7 builtin: fix int to hex 2020-04-02 17:16:17 +02:00
437bba5566 cgen: generate fn main for tests; fix consts bug 2020-03-24 22:24:03 +01:00
67ba56c65c expression: set integer literals as int by default 2020-03-23 20:05:37 +01:00
f798a0937a expression: set floats as f64 by default 2020-03-19 07:24:49 +01:00
630913d872 builtin: new str(), hex() functions without C.printf 2020-03-11 00:38:11 +01:00
7d2eb4f604 scanner: make 0o prefix the only way to define octals 2020-02-23 23:43:04 +01:00
adb1d3f8c9 scanner: enable 0oxx to handle octals 2020-02-23 12:33:07 +01:00
18c440c990 fix int_test.v 2020-02-07 22:16:14 +01:00
80daaff874 v2: scopes, or, in, hex 2020-02-04 17:44:39 +01:00
cba6a6fdea as casting 2019-12-30 10:47:34 +01:00
cb46bf314e get_type.v 2019-12-05 18:48:39 +03:00
ff80e3a5fa i8 print test + $if mac => $if macos 2019-12-03 16:09:43 +03:00
f724a956b3 parser: fix a & b == c precedence 2019-11-29 22:42:32 +03:00
56e4ed1e6b compiler: float comparison uses machine epsilon by default 2019-10-01 22:38:36 +03:00
6d483c0a56 parser: float1 == float2 uses machine epsilon by default 2019-09-29 18:27:53 +03:00
b4207e1be7 compiler: allow "u64_var == 0" without casting the const literal 2019-09-23 02:14:10 +03:00
1f67d9edd8 fix bugs breaking tests 2019-09-03 15:21:52 +03:00
1c6d51f271 remove u8 and i32 from tests and examples 2019-09-02 15:02:25 +03:00
3bd7bcfac3 remove u8 and i32 aliases 2019-09-01 22:37:22 +03:00
872aa536d8 compiler: unsigned number properly printed and converted to string
fix: array accessing now works with unsigned numbers
2019-08-12 09:15:53 +03:00
181a39d752 fix int_test.v 2019-08-09 10:21:21 +02:00
ae0e3efb8e scanner: experimental ≠ etc support 2019-08-09 09:32:51 +02:00
350e13679c force () in complex bool expressions: (a && b) || c instead of a && b || c 2019-08-05 03:22:28 +02:00
8bce5cb810 force snake_case in struct fields 2019-08-04 09:18:16 +02:00