NovaInstrucao/codigoCPU/parser.c
char * parser_GetNum_s(void)
{
    char *Value;
    Value = (char *)calloc(STRTAM,sizeof(char));
    int i=0;
    if (!parser_IsDigit(Look)) parser_Expected("Numero");
    while (parser_IsDigit(Look))
    {
        Value[i]=Look;
        parser_GetChar();
        i++;
        if (i>STRTAM-1) parser_Expected("Menos caracteres");
    }
    Value[i]='\0';
    parser_SkipWhite();
    parser_SkipComment();
    parser_SkipWhite();
    return Value;
}
/* Pega Numero (como string) */
Pega Numero (como string)
Pega Numero ( como string )
char * parser_GetNum_s(void)
{
    char *Value;
    Value = (char *)calloc(STRTAM,sizeof(char));
    int i=0;
    if (!parser_IsDigit(Look)) parser_Expected("Numero");
    while (parser_IsDigit(Look))
    {
        Value[i]=Look;
        parser_GetChar();
        i++;
        if (i>STRTAM-1) parser_Expected("Menos caracteres");
    }
    Value[i]='\0';
    parser_SkipWhite();
    parser_SkipComment();
    parser_SkipWhite();
    return Value;
}
char * parser_GetNum_s ( void ) { char * Value ; Value = ( char * ) calloc ( STRTAM , sizeof ( char ) ) ; int i = 0 ; if ( ! parser_IsDigit ( Look ) ) parser_Expected ( " " ) ; while ( parser_IsDigit ( Look ) ) { Value [ i ] = Look ; parser_GetChar ( ) ; i ++ ; if ( i > STRTAM - 1 ) parser_Expected ( " " ) ; } Value [ i ] = ' \0 ' ; parser_SkipWhite ( ) ; parser_SkipComment ( ) ; parser_SkipWhite ( ) ; return Value ; }
Pega Numero (como string)
Pega Numero ( como string )