Skip to content

Files

Latest commit

0c7f1a4 · Feb 24, 2025

History

History
This branch is 1 commit behind google/wuffs:main.

example

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Oct 6, 2023
Feb 24, 2025
Oct 6, 2023
Apr 5, 2024
Feb 24, 2025
Aug 4, 2024
Sep 11, 2024
Dec 17, 2023
Mar 31, 2024
Feb 24, 2025
Feb 24, 2025
Mar 29, 2024
Oct 6, 2023
Jan 7, 2024
Jun 1, 2023

Wuffs' Example Programs

This directory contains example programs that use Wuffs the Library. See Hello wuffs-c for an example program that uses Wuffs the Language and its wuffs-c compiler.

Other than the toy-* examples, all of these programs do real work. They're not just programming language toys at the "calculate the Fibonacci sequence" level of triviality. For example, the example/crc32 and example/zcat programs are roughly equivalent to Debian Linux's /usr/bin/crc32 and /bin/zcat programs.

Building

Running build-example.sh from the top level directory will build all of the examples. To check out and build just one, such as jsonptr:

git clone https://github.com/google/wuffs.git
cd wuffs
./build-example.sh example/jsonptr

When re-building, you only need the last of those three lines. To run it:

gen/bin/example-jsonptr test/data/json-things.unformatted.json

See also the top-level BUILD instructions.