cleanup gitignore

This commit is contained in:
ridethepig 2023-03-20 20:25:22 +08:00
parent 07c8d7748c
commit ae7236fe58
11 changed files with 0 additions and 428 deletions

View File

@ -1,7 +0,0 @@
cool-parse.o cool-parse.d : cool-parse.cc ../../include/PA3/cool-tree.h \
../../include/PA3/tree.h ../../include/PA3/copyright.h \
../../include/PA3/stringtab.h ../../include/PA3/list.h \
../../include/PA3/cool-io.h cool-tree.handcode.h \
../../include/PA3/tree.h ../../include/PA3/cool.h \
../../include/PA3/stringtab.h ../../include/PA3/stringtab.h \
../../include/PA3/utilities.h

View File

@ -1,6 +0,0 @@
cool-tree.o cool-tree.d : cool-tree.cc ../../include/PA3/tree.h \
../../include/PA3/copyright.h ../../include/PA3/stringtab.h \
../../include/PA3/list.h ../../include/PA3/cool-io.h \
cool-tree.handcode.h ../../include/PA3/cool.h \
../../include/PA3/stringtab.h ../../include/PA3/cool-tree.h \
../../include/PA3/tree.h cool-tree.handcode.h

View File

@ -1,231 +0,0 @@
Terminals unused in grammar
ELSE
FI
IF
IN
LET
LOOP
POOL
THEN
WHILE
CASE
ESAC
OF
DARROW
NEW
ISVOID
STR_CONST
INT_CONST
BOOL_CONST
OBJECTID
ASSIGN
NOT
LE
ERROR
Grammar
0 $accept: program $end
1 program: class_list
2 class_list: class
3 | class_list class
4 class: CLASS TYPEID '{' dummy_feature_list '}' ';'
5 | CLASS TYPEID INHERITS TYPEID '{' dummy_feature_list '}' ';'
6 dummy_feature_list: /* empty */
Terminals, with rules where they appear
$end (0) 0
';' (59) 4 5
'{' (123) 4 5
'}' (125) 4 5
error (256)
CLASS (258) 4 5
ELSE (259)
FI (260)
IF (261)
IN (262)
INHERITS (263) 5
LET (264)
LOOP (265)
POOL (266)
THEN (267)
WHILE (268)
CASE (269)
ESAC (270)
OF (271)
DARROW (272)
NEW (273)
ISVOID (274)
STR_CONST (275)
INT_CONST (276)
BOOL_CONST (277)
TYPEID (278) 4 5
OBJECTID (279)
ASSIGN (280)
NOT (281)
LE (282)
ERROR (283)
Nonterminals, with rules where they appear
$accept (32)
on left: 0
program (33)
on left: 1, on right: 0
class_list (34)
on left: 2 3, on right: 1 3
class (35)
on left: 4 5, on right: 2 3
dummy_feature_list (36)
on left: 6, on right: 4 5
state 0
0 $accept: . program $end
CLASS shift, and go to state 1
program go to state 2
class_list go to state 3
class go to state 4
state 1
4 class: CLASS . TYPEID '{' dummy_feature_list '}' ';'
5 | CLASS . TYPEID INHERITS TYPEID '{' dummy_feature_list '}' ';'
TYPEID shift, and go to state 5
state 2
0 $accept: program . $end
$end shift, and go to state 6
state 3
1 program: class_list .
3 class_list: class_list . class
CLASS shift, and go to state 1
$default reduce using rule 1 (program)
class go to state 7
state 4
2 class_list: class .
$default reduce using rule 2 (class_list)
state 5
4 class: CLASS TYPEID . '{' dummy_feature_list '}' ';'
5 | CLASS TYPEID . INHERITS TYPEID '{' dummy_feature_list '}' ';'
INHERITS shift, and go to state 8
'{' shift, and go to state 9
state 6
0 $accept: program $end .
$default accept
state 7
3 class_list: class_list class .
$default reduce using rule 3 (class_list)
state 8
5 class: CLASS TYPEID INHERITS . TYPEID '{' dummy_feature_list '}' ';'
TYPEID shift, and go to state 10
state 9
4 class: CLASS TYPEID '{' . dummy_feature_list '}' ';'
$default reduce using rule 6 (dummy_feature_list)
dummy_feature_list go to state 11
state 10
5 class: CLASS TYPEID INHERITS TYPEID . '{' dummy_feature_list '}' ';'
'{' shift, and go to state 12
state 11
4 class: CLASS TYPEID '{' dummy_feature_list . '}' ';'
'}' shift, and go to state 13
state 12
5 class: CLASS TYPEID INHERITS TYPEID '{' . dummy_feature_list '}' ';'
$default reduce using rule 6 (dummy_feature_list)
dummy_feature_list go to state 14
state 13
4 class: CLASS TYPEID '{' dummy_feature_list '}' . ';'
';' shift, and go to state 15
state 14
5 class: CLASS TYPEID INHERITS TYPEID '{' dummy_feature_list . '}' ';'
'}' shift, and go to state 16
state 15
4 class: CLASS TYPEID '{' dummy_feature_list '}' ';' .
$default reduce using rule 4 (class)
state 16
5 class: CLASS TYPEID INHERITS TYPEID '{' dummy_feature_list '}' . ';'
';' shift, and go to state 17
state 17
5 class: CLASS TYPEID INHERITS TYPEID '{' dummy_feature_list '}' ';' .
$default reduce using rule 5 (class)

View File

@ -1,148 +0,0 @@
/* A Bison parser, made by GNU Bison 2.4.3. */
/* Skeleton interface for Bison's Yacc-like parsers in C
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
2009, 2010 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 {
CLASS = 258,
ELSE = 259,
FI = 260,
IF = 261,
IN = 262,
INHERITS = 263,
LET = 264,
LOOP = 265,
POOL = 266,
THEN = 267,
WHILE = 268,
CASE = 269,
ESAC = 270,
OF = 271,
DARROW = 272,
NEW = 273,
ISVOID = 274,
STR_CONST = 275,
INT_CONST = 276,
BOOL_CONST = 277,
TYPEID = 278,
OBJECTID = 279,
ASSIGN = 280,
NOT = 281,
LE = 282,
ERROR = 283
};
#endif
/* Tokens. */
#define CLASS 258
#define ELSE 259
#define FI 260
#define IF 261
#define IN 262
#define INHERITS 263
#define LET 264
#define LOOP 265
#define POOL 266
#define THEN 267
#define WHILE 268
#define CASE 269
#define ESAC 270
#define OF 271
#define DARROW 272
#define NEW 273
#define ISVOID 274
#define STR_CONST 275
#define INT_CONST 276
#define BOOL_CONST 277
#define TYPEID 278
#define OBJECTID 279
#define ASSIGN 280
#define NOT 281
#define LE 282
#define ERROR 283
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef union YYSTYPE
{
/* Line 1685 of yacc.c */
#line 89 "cool.y"
Boolean boolean;
Symbol symbol;
Program program;
Class_ class_;
Classes classes;
Feature feature;
Features features;
Formal formal;
Formals formals;
Case case_;
Cases cases;
Expression expression;
Expressions expressions;
char *error_msg;
/* Line 1685 of yacc.c */
#line 126 "cool.tab.h"
} YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
#endif
extern YYSTYPE cool_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 cool_yylloc;

View File

@ -1,7 +0,0 @@
dumptype.o dumptype.d : dumptype.cc ../../include/PA3/copyright.h \
../../include/PA3/cool.h ../../include/PA3/copyright.h \
../../include/PA3/cool-io.h ../../include/PA3/tree.h \
../../include/PA3/stringtab.h ../../include/PA3/list.h \
../../include/PA3/cool-tree.h ../../include/PA3/tree.h \
cool-tree.handcode.h ../../include/PA3/tree.h ../../include/PA3/cool.h \
../../include/PA3/stringtab.h ../../include/PA3/utilities.h

View File

@ -1,3 +0,0 @@
handle_flags.o handle_flags.d : handle_flags.cc ../../include/PA3/copyright.h \
../../include/PA3/cool-io.h ../../include/PA3/copyright.h \
../../include/PA3/cgen_gc.h

View File

@ -1,8 +0,0 @@
parser-phase.o parser-phase.d : parser-phase.cc ../../include/PA3/copyright.h \
../../include/PA3/cool-io.h ../../include/PA3/copyright.h \
../../include/PA3/cool-tree.h ../../include/PA3/tree.h \
../../include/PA3/stringtab.h ../../include/PA3/list.h \
../../include/PA3/cool-io.h cool-tree.handcode.h \
../../include/PA3/tree.h ../../include/PA3/cool.h \
../../include/PA3/stringtab.h ../../include/PA3/utilities.h \
../../include/PA3/cool-parse.h

View File

@ -1,4 +0,0 @@
stringtab.o stringtab.d : stringtab.cc ../../include/PA3/copyright.h \
../../include/PA3/stringtab_functions.h ../../include/PA3/copyright.h \
../../include/PA3/cool-io.h ../../include/PA3/stringtab.h \
../../include/PA3/list.h ../../include/PA3/stringtab.h

View File

@ -1,5 +0,0 @@
tokens-lex.o tokens-lex.d : tokens-lex.cc ../../include/PA3/cool-parse.h \
../../include/PA3/copyright.h ../../include/PA3/cool-io.h \
../../include/PA3/tree.h ../../include/PA3/stringtab.h \
../../include/PA3/list.h ../../include/PA3/stringtab.h \
../../include/PA3/utilities.h

View File

@ -1,3 +0,0 @@
tree.o tree.d : tree.cc ../../include/PA3/copyright.h ../../include/PA3/tree.h \
../../include/PA3/copyright.h ../../include/PA3/stringtab.h \
../../include/PA3/list.h ../../include/PA3/cool-io.h

View File

@ -1,6 +0,0 @@
utilities.o utilities.d : utilities.cc ../../include/PA3/copyright.h \
../../include/PA3/cool-io.h ../../include/PA3/copyright.h \
../../include/PA3/cool-parse.h ../../include/PA3/cool-io.h \
../../include/PA3/tree.h ../../include/PA3/stringtab.h \
../../include/PA3/list.h ../../include/PA3/stringtab.h \
../../include/PA3/utilities.h