Skip to content
Snippets Groups Projects
Commit da0ade69 authored by viniciusmioto's avatar viniciusmioto
Browse files

enum categoria VS e PR

parent 396dc731
Branches
No related tags found
No related merge requests found
File deleted
File deleted
This diff is collapsed.
/* A Bison parser, made by GNU Bison 2.3. */
/* Skeleton interface for Bison's Yacc-like parsers in C
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA. */
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
under terms of your choice, so long as that work isn't itself a
parser generator using the skeleton or a modified version thereof
as a parser skeleton. Alternatively, if you modify or redistribute
the parser skeleton itself, you may (at your option) remove this
special exception, which will cause the skeleton and the resulting
Bison output files to be licensed under the GNU General Public
License without this special exception.
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
/* Tokens. */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
/* Put the tokens into the symbol table, so that GDB and other debuggers
know about them. */
enum yytokentype {
PROGRAM = 258,
ABRE_PARENTESES = 259,
FECHA_PARENTESES = 260,
VIRGULA = 261,
PONTO_E_VIRGULA = 262,
DOIS_PONTOS = 263,
PONTO = 264,
T_BEGIN = 265,
T_END = 266,
VAR = 267,
IDENT = 268,
ATRIBUICAO = 269,
LABEL = 270,
TYPE = 271,
ARRAY = 272,
PROCEDURE = 273,
FUNCTION = 274,
GOTO = 275,
IF = 276,
THEN = 277,
ELSE = 278,
WHILE = 279,
DO = 280,
OR = 281,
DIV = 282,
AND = 283,
NOT = 284,
IGUAL = 285,
DIFERENTE = 286,
MENOR_IGUAL = 287,
MAIOR_IGUAL = 288,
MENOR = 289,
MAIOR = 290,
MAIS = 291,
MENOS = 292,
ASTERISCO = 293,
NUMERO = 294,
READ = 295,
WRITE = 296,
LOWER_THAN_ELSE = 297
};
#endif
/* Tokens. */
#define PROGRAM 258
#define ABRE_PARENTESES 259
#define FECHA_PARENTESES 260
#define VIRGULA 261
#define PONTO_E_VIRGULA 262
#define DOIS_PONTOS 263
#define PONTO 264
#define T_BEGIN 265
#define T_END 266
#define VAR 267
#define IDENT 268
#define ATRIBUICAO 269
#define LABEL 270
#define TYPE 271
#define ARRAY 272
#define PROCEDURE 273
#define FUNCTION 274
#define GOTO 275
#define IF 276
#define THEN 277
#define ELSE 278
#define WHILE 279
#define DO 280
#define OR 281
#define DIV 282
#define AND 283
#define NOT 284
#define IGUAL 285
#define DIFERENTE 286
#define MENOR_IGUAL 287
#define MAIOR_IGUAL 288
#define MENOR 289
#define MAIOR 290
#define MAIS 291
#define MENOS 292
#define ASTERISCO 293
#define NUMERO 294
#define READ 295
#define WRITE 296
#define LOWER_THAN_ELSE 297
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef int YYSTYPE;
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
# define YYSTYPE_IS_TRIVIAL 1
#endif
extern YYSTYPE yylval;
This diff is collapsed.
File deleted
......@@ -15,13 +15,14 @@ typedef struct ts_t {
int tam;
} ts_t;
// enun de tipos
// enum de tipos
#define NSEI 0
#define INTEIRO 1
#define BOOLEAN 2
// enum categorias
#define VS 0
#define PR 1
void inicializa_ts(ts_t *ts);
......
File deleted
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment