Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .devcontainer/post-create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

set -euo pipefail

version=0.9.1
version=0.10.0

npm install -g "cowel@${version}"
6 changes: 3 additions & 3 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ Most paper sources are written in **COWEL**.
It is a specialized language designed for C++ proposal documentation.

- **File extensions**: `.cow` or `.cowel`
- **Default version**: COWEL 0.9.1
- **Default version**: COWEL 0.10.0
- **Version specification**: All files include a version comment at the top
(e.g., `\: cowel 0.9.1`)
(e.g., `\: cowel 0.10.0`)
- **Build command**: `cowel run input.cow output.html`
- **Installation**:
- Latest: `npm i -g cowel`
- Specific version: `npm i -g cowel@0.9.1`
- Specific version: `npm i -g cowel@0.10.0`

**Resources**:

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/verify-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
uses: actions/checkout@v4

- name: Install cowel
run: npm install -g cowel@0.9.1
run: npm install -g cowel@0.10.0

- name: Verify docs match sources
run: bash scripts/verify-docs.sh
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ or if you have suggestions for improvement.

This repository includes a GitHub Codespaces/devcontainer setup
that installs Node.js,
`cowel@0.9.1`,
`cowel@0.10.0`,
and the COWEL VS Code extension automatically.
156 changes: 77 additions & 79 deletions docs/big-int.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/bitint.html
Original file line number Diff line number Diff line change
Expand Up @@ -3728,7 +3728,7 @@ <h3 id=note-on-alias-templates-for-_bitint><a class=para href=#note-on-alias-tem

<h2 id=implementation-experience><a class=para href=#implementation-experience></a>6. Implementation experience</h2>

<p><code><h- data-h=kw_type>_BitInt</h-></code>, formerly known as <code><h- data-h=name>_ExtInt</h-></code>, has been a compiler extension
<p><code><h- data-h=kw_type>_BitInt</h-></code>, formerly known as <code><h- data-h=kw_type>_ExtInt</h-></code>, has been a compiler extension
in Clang for several years now.
The core language changes are essentially standardizing that compiler extension.
</p>
Expand Down
4 changes: 2 additions & 2 deletions scripts/rebuild-docs.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# Rebuild HTML files in docs/ for every COWEL 0.9.1 source file,
# Rebuild HTML files in docs/ for every COWEL 0.10.0 source file,
# but only when a corresponding HTML file already exists in docs/.
#
# Usage: scripts/rebuild-docs.sh
Expand All @@ -18,6 +18,6 @@ while IFS= read -r src; do
fi
cowel run "$src" "$dest"
echo "BUILT: $src -> $dest"
done < <(grep -rl '\\: cowel 0\.9\.1' src/)
done < <(grep -rl '\\: cowel 0\.10\.0' src/)

exit $failed
2 changes: 1 addition & 1 deletion src/array.cow
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\: cowel 0.9.1
\: cowel 0.10.0
\cowel_include("libwg21-9.cow")

\wg21_head(title = {\tcode{std::array} is a wrapper for an array!}){
Expand Down
2 changes: 1 addition & 1 deletion src/ascii.cow
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\: cowel 0.9.1
\: cowel 0.10.0
\cowel_include("libwg21-9.cow")\
\
\cowel_macro("charset"){\tt{\hl("string"){[\cowel_put]}}}\
Expand Down
6 changes: 3 additions & 3 deletions src/better-shifting.cow
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\: cowel 0.9.1
\: cowel 0.10.0
\cowel_include("libwg21-9.cow")

\wg21_head(title={Better shifting}){
Expand Down Expand Up @@ -107,8 +107,8 @@ width of the first operand.
Consider the task of implementing the following function:

\cppblock{
/// \serif{Return the value of \tcode{x} with the least significant \tcode{num_bits} bits masked out.}
/// \serif{\tcode{num_bits} shall be nonnegative and \'LESS-THAN OR EQUAL TO' \tcode{32}.}
/// \serif{Return the value of \ocode{x} with the least significant \ocode{num_bits} bits masked out.}
/// \serif{\ocode{num_bits} shall be nonnegative and \'LESS-THAN OR EQUAL TO' \ocode{32}.}
std::uint32_t mask_lsb(std::uint32_t x, int num_bits);
}

Expand Down
Loading
Loading