Ver a proveniência

Add signed keyword

Fixes #10
pull/16/merge
Max Brunsfeld há 7 anos
ascendente
cometimento
176fd5f077
4 ficheiros alterados com 623 adições e 280 eliminações
  1. +1
    -1
      corpus/types.txt
  2. +1
    -0
      grammar.js
  3. +4
    -0
      src/grammar.json
  4. +617
    -279
      src/parser.c

+ 1
- 1
corpus/types.txt Ver ficheiro

@ -46,7 +46,7 @@ Type modifiers
void f(unsigned);
void f(unsigned int);
void f(unsigned long int);
void f(signed long int);
void f(unsigned v1);
void f(unsigned long v2);

+ 1
- 0
grammar.js Ver ficheiro

@ -282,6 +282,7 @@ module.exports = grammar({
sized_type_specifier: $ => seq(
repeat1(choice(
'signed',
'unsigned',
'long',
'short'

+ 4
- 0
src/grammar.json Ver ficheiro

@ -1891,6 +1891,10 @@
"content": {
"type": "CHOICE",
"members": [
{
"type": "STRING",
"value": "signed"
},
{
"type": "STRING",
"value": "unsigned"

+ 617
- 279
src/parser.c
A apresentação das diferenças no ficheiro foi suprimida por ser demasiado grande
Ver ficheiro


Carregando…
Cancelar
Guardar