Skip to content

Rewrite the GLSL lexer as not a subclass of C#2249

Merged
jneen merged 5 commits intomainfrom
lexer.glsl-rework
Mar 12, 2026
Merged

Rewrite the GLSL lexer as not a subclass of C#2249
jneen merged 5 commits intomainfrom
lexer.glsl-rework

Conversation

@jneen
Copy link
Member

@jneen jneen commented Mar 10, 2026

The GLSL lexer (previously Glsl) was written as a subset of C, which is incorrect - GLSL is its own language with its own syntax, which is only superficially similar to C.

Luckily it's a fairly simple language with a straightforward spec, albeit with a large ever-growing list of types and builtins. I've gone ahead and rewritten it, along with a lazy-loaded and doc-generated builtins script.

@jneen jneen marked this pull request as draft March 10, 2026 23:58
@jneen jneen changed the title Rewrite the GLSL lexer as not a subclass of C DRAFT: Rewrite the GLSL lexer as not a subclass of C Mar 10, 2026
@jneen jneen force-pushed the lexer.glsl-rework branch from f3e58c9 to e253632 Compare March 11, 2026 00:04
@jneen jneen marked this pull request as ready for review March 11, 2026 17:50
@jneen jneen changed the title DRAFT: Rewrite the GLSL lexer as not a subclass of C Rewrite the GLSL lexer as not a subclass of C Mar 11, 2026
@jneen jneen added this pull request to the merge queue Mar 12, 2026
Merged via the queue into main with commit 74bfc22 Mar 12, 2026
10 checks passed
@jneen jneen deleted the lexer.glsl-rework branch March 12, 2026 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant