abhinav / abhinav/language-thrift
Should `ConstValue` add new constructor from bool ?
未關閉
help wanted
- 主要語言
- Haskell
- 星號
- 8
- 分支
- 3
- PR 合併指標
- 30 天內沒有已合併 PR
描述
I find that struct field with default bool value , it will parse the value to Text.
Example:
```
struct Demo{
1: bool flag = false
}
```
It will generate `fieldDefaultValue` with the `ConstLiteral Text srcAnnot`. I think `ConstValue` should add `ConstBool Bool srcAnnot` constructor.
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
Look at the ConstValue type definition in the parser, likely in a module like Language.Thrift.Syntax. Add a ConstBool constructor. Update the parser logic for default values in struct fields to generate this new constructor for boolean literals. Run existing tests to ensure no regressions and add a test for the new behavior.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- haskell
- 領域
- compilers
- Issue 類型
- 功能
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 描述清楚
- 新手友好度
- 50/100