Skip to content

Add Visibility, Div and some UnaryOps - #28

Merged
0xGeorgii merged 4 commits into
mainfrom
add-visibility-and-unary-ops
Jan 9, 2026
Merged

0xGeorgii merged 4 commits into
mainfrom
add-visibility-and-unary-ops

Conversation

@0xGeorgii

Copy link
Copy Markdown
Contributor

No description provided.

@0xGeorgii 0xGeorgii self-assigned this Jan 9, 2026
@0xGeorgii
0xGeorgii requested a review from Copilot January 9, 2026 02:35

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds visibility modifiers, the division operator, and unary operators (minus, bitwise NOT) to the Inference language grammar. It updates the version from 0.0.37 to 0.0.38 and includes comprehensive test coverage for the new features.

Key Changes

  • Adds pub visibility modifier support for definitions (functions, constants, types, enums, structs)
  • Implements division (/) operator and unary operators (-, ~, !)
  • Includes extensive test suites for unary expressions, generic function calls, and visibility modifiers

Reviewed changes

Copilot reviewed 13 out of 16 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
grammar.js Adds visibility and operator rules; renames struct field from 'value' to 'method'; updates number_literal precedence
src/grammar.json Generated grammar JSON reflecting the new visibility and operator rules
src/node-types.json Generated node types JSON with new visibility and operator nodes
test/corpus/expressions/unary.txt Comprehensive test cases for unary operators including NOT, minus, and bitwise NOT
test/corpus/expressions/generic_call.txt Test cases for generic function call syntax
test/corpus/expressions/binary.txt Test cases for division operator usage
test/corpus/definitions/visibility.txt Test cases for visibility modifiers across definition types
queries/highlights.scm Syntax highlighting for operators and unary operators
inference.ebnf Complete EBNF specification for the Inference language
package.json Version bump and dependency updates
pyproject.toml Version bump to 0.0.38
Makefile Version bump to 0.0.38
Cargo.toml Version bump to 0.0.38

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread test/corpus/definitions/visibility.txt
@0xGeorgii 0xGeorgii changed the title Add Vibility, Div and some UnaryOps Add Visibility, Div and some UnaryOps Jan 9, 2026
@0xGeorgii
0xGeorgii merged commit f20c8e2 into main Jan 9, 2026
4 checks passed
@0xGeorgii
0xGeorgii deleted the add-visibility-and-unary-ops branch January 9, 2026 02:55
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.

2 participants