Changeset d9e4d83


Ignore:
Timestamp:
Jan 27, 2021, 9:22:48 AM (8 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
arm-eh, jacob/cs343-translation, master, new-ast-unique-expr
Children:
2b878b4
Parents:
ec3f9c8
Message:

formatting, add extern C for yylex declaration because of C++ compile, add -Wno-yacc to AM_YFLAGS

Location:
tools/prettyprinter
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • tools/prettyprinter/Makefile.am

    rec3f9c8 rd9e4d83  
    1111## Created On       : Wed Jun 28 12:07:10 2017
    1212## Last Modified By : Peter A. Buhr
    13 ## Last Modified On : Mon Apr 16 09:43:23 2018
    14 ## Update Count     : 20
     13## Last Modified On : Tue Jan 26 21:54:07 2021
     14## Update Count     : 21
    1515###############################################################################
    1616
     
    2020BUILT_SOURCES = parser.hh
    2121
    22 AM_YFLAGS = -d -t -v
     22AM_YFLAGS = -d -t -v -Wno-yacc
    2323
    2424SRC = lex.ll \
  • tools/prettyprinter/ParserTypes.h

    rec3f9c8 rd9e4d83  
    1313// Created On       : Sun Dec 16 15:00:49 2001
    1414// Last Modified By : Peter A. Buhr
    15 // Last Modified On : Sat Jul 22 10:13:09 2017
    16 // Update Count     : 175
     15// Last Modified On : Tue Jan 26 23:05:34 2021
     16// Update Count     : 176
    1717//
    1818
    1919#pragma once
    2020
    21 int yylex();
     21extern "C" int yylex();
    2222
    2323#include <string>
  • tools/prettyprinter/parser.yy

    rec3f9c8 rd9e4d83  
    1010// Created On       : Sat Dec 15 13:44:21 2001
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sun Apr 15 21:40:30 2018
    13 // Update Count     : 1052
     12// Last Modified On : Tue Jan 26 22:50:03 2021
     13// Update Count     : 1053
    1414//
    1515
     
    1717#define YYDEBUG_LEXER_TEXT( yylval )                                    // lexer loads this up each time
    1818#define YYDEBUG 1                                                                               // get the pretty debugging code to compile
     19#define YYERROR_VERBOSE                                                                 // more information in syntax errors
    1920
    2021#include <iostream>
Note: See TracChangeset for help on using the changeset viewer.