miantalha45 opened a new pull request, #3394:
URL: https://github.com/apache/fory/pull/3394

   ## Summary
   Implements complete proto3 IDL code generation system for Fory 
JavaScript/TypeScript that converts proto files into gRPC-compatible type 
definitions. Includes parser, code generator, 25 tests (100% pass rate), and 
supports messages, enums, services with zero runtime dependencies.
   
   ## Changes
   
   ### Core Implementation
   - **idlParser.ts** - Proto3 parser with full syntax support
   - **codeGenerator.ts** - TypeScript/JavaScript code generator
   - **index.ts** - Module exports and public API
   - **codegen.test.ts** - 25 comprehensive tests
   - **packages/fory/index.ts** - Updated to export Codegen module
   
   ### Features
   - Message/enum/union type generation compatible with gRPC stubs
   - Package/namespace handling and qualified type resolution
   - Service interfaces with streaming RPC support (AsyncIterable)
   - Type mappings for all proto scalar types (int32→number, 
int64→bigint|string, etc.)
   - Zero runtime dependencies - pure type definitions only
   - Configurable options: language (TS/JS), JSDoc, service generation
   
   ### Usage
   ```typescript
   import { Codegen } from '@apache-fory/fory';
   const code = Codegen.generateFromProto(protoContent);
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to