Commit Graph
32 Commits
Author SHA1 Message Date
Patrick Georgi f563f32f82 Add SPDX identifier to license headers
SPDX is an ISO standard for describing licenses in a computer readable
format, which is useful when applying license compliance tools and the
like to source code.

In addition to ensuring that the Wuffs C distribution is properly
annotated to the benefit of projects using Wuffs and SPDX-supporting
tools, add it everywhere else where there's a license in this repo for
consistency, too.
2023-10-06 20:52:36 +02:00
Nigel Tao 74a6ea2fcd all: relicense from Apache2 to dual Apache2/MIT
The LICENSE has changed from a single license (Apache2) to a dual
license (Apache2 or MIT, at your option).

If you've previously used Wuffs under the Apache2 license, you are able
to keep doing so. No further action required by you.

The two files listed below (previous releases) are exceptions, as they
are older snapshots, frozen in time. Their license has not changed:
release/c/wuffs-v0.2.c
release/c/wuffs-v0.3.c

Every name in the AUTHORS file, other than Google Inc., has signed
Google's CLA (Contributor License Agreement).
2023-10-06 10:00:59 +11:00
Nigel Tao 8c4c714ad1 Add 0b prefixed binary numbers 2021-01-28 21:54:06 +11:00
Nigel Tao 9e50918718 Add single-quoted strings 2020-03-25 19:41:02 +11:00
Nigel Tao 22be1c0da0 Allow underscores in numeric constants 2020-02-08 17:20:32 +11:00
Nigel Tao c9161bafaf Simplify token.builtInsByID 2018-04-15 18:15:56 +10:00
Nigel Tao eeebd58d7b Remove token ID/Key distinction, part 11 of N 2018-04-15 17:57:10 +10:00
Nigel Tao 10b6eaebb6 Remove token ID/Key distinction, part 9 of N 2018-04-15 15:41:48 +10:00
Nigel Tao 1717d5befd Remove token ID/Key distinction, part 8 of N 2018-04-15 15:22:09 +10:00
Nigel Tao afd7429e9a Remove token ID/Key distinction, part 1 of N 2018-04-15 10:41:18 +10:00
Nigel Tao 79a94558be Rename PUFFS to WUFFS, part 5 of N 2017-11-30 16:37:20 +11:00
Nigel Tao d4372cb5b8 Change license to Apache 2.
Also remove explicit PATENTS file. The new LICENSE file already
discusses patents.

Note that the Puffs project has not yet been publicly released.
2017-10-12 11:17:41 +11:00
Nigel Tao 389d9bc8bf Remove the placeholder code limit count. 2017-07-22 10:14:50 +10:00
Nigel Tao 17b518376f Add a packageid keyword. 2017-07-06 11:17:15 +10:00
Nigel Tao f4db300358 Support "0x123" hexadecimal numeric literals. 2017-06-16 11:57:02 +10:00
Nigel Tao 6e7e566232 Rename token.IDMap to token.Map. 2017-06-08 13:10:01 +10:00
Nigel Tao 7df75101cd Simplify tokenization of multi-byte squiggles. 2017-05-21 10:56:21 +10:00
Nigel Tao a8c304236d First cut of a bounds checker. 2017-05-18 13:37:46 +10:00
Nigel Tao c1ce1b08de Check "var z u64[:123]". 2017-05-11 17:11:17 +10:00
Nigel Tao 54567dbd47 Rename ParseFile, RenderFile to Parse, Render.
Also make various funcs' arg order consist wrt the IDMap and the input
or inputs.
2017-05-11 09:48:01 +10:00
Nigel Tao cf8167a648 Add ByID and ByToken to token.IDMap. 2017-05-06 17:02:11 +10:00
Nigel Tao 6424985f0f Export token Key and Flags bit sizes. 2017-05-06 14:20:18 +10:00
Nigel Tao 60a4fdb9fd Parse use "std/io". 2017-05-05 15:07:30 +10:00
Nigel Tao 94cb8b25cb Tokenize and render comments. 2017-05-05 12:33:38 +10:00
Nigel Tao 1617d5eb34 Enforce a maximum token size. 2017-05-04 11:16:37 +10:00
Nigel Tao 5c934e5599 Hoist some methods from token.ID to token.Token. 2017-04-30 13:42:48 +10:00
Nigel Tao a48bbf6d2e Change Token.Line from int32 to uint32. 2017-04-30 13:27:55 +10:00
Nigel Tao 0cfb27db56 Simplify unrecognized token byte error message. 2017-04-30 13:11:58 +10:00
Nigel Tao 3072f64368 Introduce token.Flags. 2017-04-30 13:09:36 +10:00
Nigel Tao ea2bc6c10c First cut of a parser. 2017-04-29 16:57:56 +10:00
Nigel Tao 21c6c34d92 Insert implicit semicolons. 2017-04-29 11:51:37 +10:00
Nigel Tao a91ae8cdbf First cut of a tokenizer. 2017-04-29 11:27:38 +10:00