Repository navigation
Conversation
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. |
compiler/src/token.flow: add KW_NOT (30). compiler/src/lexer.flow: recognize "not" keyword. compiler/src/parser.flow: - Handle `not` as unary negation (maps to TOK_BANG / !). - Allow TOK_KEYWORD as struct field name (e.g. `unit: f32`). - Add `extern function name(params) -> Ret` parsing (skip signature). - Add flowc_parser_skip_paren_block helper. - Add forward declarations for skip helpers. lib/stdlib/memory_simple.flow now parses (uses `not`). lib/stdlib/ui_layout.flow now parses (uses `unit` as field name). lib/stdlib/net.flow and posix.flow now parse (use `extern function`). 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>
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
notkeyword for logical negation, mapped to!in the AST.unit) are now accepted as struct field names.extern function name(params) -> Retdeclarations are now parsed (signature skipped, same asextern { ... }blocks).Context
memory_simple.flowusesif not memory_check(...).ui_layout.flowhas a struct field namedunit.net.flowandposix.flowdeclare libc functions withextern function socket(...).Test plan
./flow run compiler/src/main.flowpasses (flowc: PASS)if not true { return 1 }compiles and returns 0net.flow,posix.flow,ui_layout.flow,memory_simple.flownow emit CThis pull request includes code written with the assistance of AI.
The code has not yet been reviewed by a human.
Generated with Devin