Repository navigation
Conversation
…eyword let names compiler/src/parser.flow: - Skip statement-level attributes (@name, @name(args)) before statements. - Skip generic type parameters on struct names (struct Signal<R>). - Skip generic type arguments on identifiers in expressions (Signal<R> { ... }). - Parse reference types (&T) and slice types ([T]) in flowc_parse_type. - Handle extern "label" { ... } string-prefixed extern blocks. - Handle export type and export distinct type declarations. - Allow keywords (e.g. unit) as let variable names. lib/stdlib/bigint.flow now parses (uses @max_iterations on while). lib/stdlib/rf.flow now parses (uses export struct Signal<R>, export type IQ). lib/stdlib/render3d.flow now parses (uses &[f32] parameter types). lib/stdlib/time.flow now parses (uses extern "jit" { ... }). lib/stdlib/ui_layout.flow now parses (uses let unit: f32 = ...). lib/stdlib/concurrent.flow now parses. compiler/bootstrap/flowc_stage_a.c: regenerated. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@name,@name(args)) are now skipped before statements.struct Signal<R>) now parse (type params skipped).Signal<R> { ... }) are now skipped.&T) and slice types ([T]) are now parsed in the type parser.extern "label" { ... }string-prefixed extern blocks are now handled.export typeandexport distinct typedeclarations are now parsed.unit) are now accepted asletvariable names.Context
bigint.flowuses@max_iterations(65536)on a while loop.rf.flowhasexport struct Signal<R>andexport type IQ = c64.render3d.flowuses&[f32]parameter types.time.flowusesextern "jit" { ... }.ui_layout.flowhaslet unit: f32 = ...whereunitis a keyword.Test plan
./flow run compiler/src/main.flowpasses (flowc: PASS)This pull request includes code written with the assistance of AI.
The code has not yet been reviewed by a human.
Generated with Devin