📄 formateur.h
字号:
/**********************************************************************************//* *//* Copyright (c) 2003, Hangouet Samuel, Mouton Louis-Marie all rights reserved *//* *//* This file is part of gasm. *//* *//* gasm 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 of the License, or *//* (at your option) any later version. *//* *//* gasm 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 gasm; if not, write to the Free Software *//* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *//* *//**********************************************************************************//* If you encountered any problem, please contact : *//* *//* lmouton@enserg.fr *//* shangoue@enserg.fr *//* */#ifndef M_FORMATEUR_FLAG#define M_FORMATEUR_FLAG/* Modules de la bibliotheque standard */#include <stdlib.h>#include <stdio.h>/* Autres modules utilises */#include <dialogue.h>/*********************************************************************************************//* COMPOSITION DES ENSEMBLES DE CARACTERES *//* Tout autre caractere rencontre dans la source sera inconnu et renverra une erreur lors de *//* sa lecture. *//*********************************************************************************************//* D塮inition d'un code pour chaque ensemble existant */#define NBR_ENS 6 /* Nombre d'ensembles existant. */enum {lettre, chiffre, prefixe, sep_explicite, sep_invisible, commentaire};/* D塮inition de constantes pour la taille de chaque ensemble existant. */#define taille_lettre 56#define taille_chiffre 22#define taille_prefixe 6#define taille_sep_explicite 11#define taille_sep_invisible 3#define taille_commentaire 2/* D塩laration du tableau regroupant tous ces ensembles. */extern int *ensemble[NBR_ENS];/* D塮inition de constantes pour les valeurs des operateurs (S塸arateur explicites). */#define ACF '}'#define ACO '{'#define NL '\n' #define DP ':' #define PF ')'#define PO '(' #define PS '+' #define MS '-' #define DIR '#' #define VIR ',' /*********************************************************************************************//* DEFINITION DES LEXEMES *//* D塮inition du type lex坢e et des constantes qui s'y rapportent. *//*********************************************************************************************//* D塩laration des diff塺ents types de lexemes possibles. Ces valeurs rempliront le champ *//* type de la structure lexeme. */#define ALPHA 2#define NUM 4#define OP 8/* Le type des lex坢es sera cod
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -