abhinav / abhinav/language-thrift

Should `ConstValue` add new constructor from bool ?

Aberta
#14 1 comentário 0 reações 0 responsáveis Ver no GitHub
help wanted
Linguagem predominante
Haskell
Estrelas
8
Forks
3
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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.

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
haskell
Domínio
compilers
Tipo de issue
Funcionalidade
Dificuldade
3/5
Tempo estimado
1-2 dias
Status de atividade
Estagnada
Clareza
Claramente especificada
Facilidade para iniciantes
50/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.