y.tab.h
Description du code
y.tab.h est un fichier du projet Compilateur LSD010.Ce fichier est situé dans /var/www/bin/sniplets/lsd010/.
Projet Compilateur LSD010 :
Compilateur LSD010 développé dans le cadre du cours de syntaxe et sémantiqueref 1
Code source ou contenu du fichier
Code c (y.tab.h) (170 lignes)
/* A Bison parser, made by GNU Bison 2.4.1. */ /* 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 3 of the License, 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, see <http://www.gnu.org/licenses/>. */ /* 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 { LEXICAL_BOOLEAN_TYPE = 258, LEXICAL_INTEGER_TYPE = 259, LEXICAL_VOID_TYPE = 260, LEXICAL_INSTACK_TYPE = 261, NUMBER = 262, LEXICAL_TRUE_VAL = 263, LEXICAL_FALSE_VAL = 264, LEXICAL_AND = 265, LEXICAL_OR = 266, LEXICAL_ANDLAZY = 267, LEXICAL_ORLAZY = 268, LEXICAL_NOT = 269, LEXICAL_EQUALS = 270, LEXICAL_LESS_EQUALS = 271, LEXICAL_LESS = 272, LEXICAL_AFFECTATION = 273, LEXICAL_PLUS = 274, LEXICAL_MINUS = 275, LEXICAL_MULT = 276, LEXICAL_DIV = 277, LEXICAL_MOD = 278, L_PARENTHESIS = 279, LSQUI_BRACKET = 280, LSQUA_BRACKET = 281, POINT = 282, RSQUA_BRACKET = 283, R_PARENTHESIS = 284, RSQUI_BRACKET = 285, LEXICAL_GET_OPS = 286, LEXICAL_ISEMPTY_OPS = 287, LEXICAL_WRITE_OPS = 288, LEXICAL_READ_OPS = 289, LEXICAL_PUT_OPS = 290, LEXICAL_RETURN_STMT = 291, LEXICAL_IF_STMT = 292, LEXICAL_ELSE_STMT = 293, LEXICAL_WHILE_STMT = 294, LEXICAL_FLEXICAL_OR_STMT = 295, COLON = 296, SEMICOLON = 297, COMMA = 298, LEXICAL_VAR = 299, ID = 300 }; #endif /* Tokens. */ #define LEXICAL_BOOLEAN_TYPE 258 #define LEXICAL_INTEGER_TYPE 259 #define LEXICAL_VOID_TYPE 260 #define LEXICAL_INSTACK_TYPE 261 #define NUMBER 262 #define LEXICAL_TRUE_VAL 263 #define LEXICAL_FALSE_VAL 264 #define LEXICAL_AND 265 #define LEXICAL_OR 266 #define LEXICAL_ANDLAZY 267 #define LEXICAL_ORLAZY 268 #define LEXICAL_NOT 269 #define LEXICAL_EQUALS 270 #define LEXICAL_LESS_EQUALS 271 #define LEXICAL_LESS 272 #define LEXICAL_AFFECTATION 273 #define LEXICAL_PLUS 274 #define LEXICAL_MINUS 275 #define LEXICAL_MULT 276 #define LEXICAL_DIV 277 #define LEXICAL_MOD 278 #define L_PARENTHESIS 279 #define LSQUI_BRACKET 280 #define LSQUA_BRACKET 281 #define POINT 282 #define RSQUA_BRACKET 283 #define R_PARENTHESIS 284 #define RSQUI_BRACKET 285 #define LEXICAL_GET_OPS 286 #define LEXICAL_ISEMPTY_OPS 287 #define LEXICAL_WRITE_OPS 288 #define LEXICAL_READ_OPS 289 #define LEXICAL_PUT_OPS 290 #define LEXICAL_RETURN_STMT 291 #define LEXICAL_IF_STMT 292 #define LEXICAL_ELSE_STMT 293 #define LEXICAL_WHILE_STMT 294 #define LEXICAL_FLEXICAL_OR_STMT 295 #define COLON 296 #define SEMICOLON 297 #define COMMA 298 #define LEXICAL_VAR 299 #define ID 300 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED typedef union YYSTYPE { /* Line 1676 of yacc.c */ #line 45 "lsd10.y" int nval; char *text; struct astNode *node; /* Line 1676 of yacc.c */ #line 150 "y.tab.h" } YYSTYPE; # define YYSTYPE_IS_TRIVIAL 1 # define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define YYSTYPE_IS_DECLARED 1 #endif extern YYSTYPE yylval; #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED typedef struct YYLTYPE { int first_line; int first_column; int last_line; int last_column; } YYLTYPE; # define yyltype YYLTYPE /* obsolescent; will be withdrawn */ # define YYLTYPE_IS_DECLARED 1 # define YYLTYPE_IS_TRIVIAL 1 #endif extern YYLTYPE yylloc;
Structure et Fichiers du projet
Afficher/masquer...Icône | Nom | Taille | Modification |
Pas de sous-répertoires. | |||
Icône | Nom | Taille | Modification |
| _ | Répertoire parent | 0 octets | 1734880308 22/12/2024 16:11:48 |
Warning
Ce code présente une manière possible d'implémenter un compilateur, et certains choix peuvent être discutés.Cependant, il peut donner des pistes pour démarrer, ou approcher certains concepts, et je tenterais par la suite de mettre à jour le code.
Utilisation de l'explorateur de code
- Navigation :
- Un clic sur une icône de répertoire ouvre ce répertoire pour en afficher les fichiers.
- Lorsque le répertoire en cours ne contient pas de sous-répertoires il est possible de remonter vers le répertoire parent.
- La structure de répertoires en treetable (tableau en forme d'arborescence) n'est plus possibledans cette version.
- Un clic sur une icône de fichier ouvre ce fichier pour en afficher le code avec la coloration syntaxique adaptée en fonction du langage principal utilisé dans le fichier.
- Affichage :
- Il est possible de trier les répertoires ou les fichiers selon certains critères (nom, taille, date).
- Actions :
- Les actions possible sur les fichiers dépendent de vos droits d'utilisateur sur le site. Veuillez activer le mode utilisateur pour activer les actions.
English translation
You have asked to visit this site in English. For now, only the interface is translated, but not all the content yet.If you want to help me in translations, your contribution is welcome. All you need to do is register on the site, and send me a message asking me to add you to the group of translators, which will give you the opportunity to translate the pages you want. A link at the bottom of each translated page indicates that you are the translator, and has a link to your profile.
Thank you in advance.
Document created the 07/03/2010, last modified the 28/10/2018
Source of the printed document:https://www.gaudry.be/en/langages-lsd10-source-rf-project/source//y.tab.h.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
- ↑a,b LSD010 : Langage Simple et Didactique Il existe une un certain nombre d'interprétations de l'acronyme LSD (Langage Symbolique Didactique, Langage Sans Difficulté, Langage Simple et Didactique). LSD010 est la version 2010 de la suite LSD80, LSD_02, LSD03, LSD04, LSD05, LSD06, LSD07, LSD08, et LSD09.
References
- IHDCB332 - Théorie des langages : Syntaxe et sémantique : PY Schobbens,
Syntaxe et sémantique
(January 2010)
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.