Changeset 56c3935


Ignore:
Timestamp:
Jun 1, 2015, 12:00:51 AM (10 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
Children:
6081e74e
Parents:
5cb5f842
Message:

redo automake third attempt

Files:
2 added
14 edited
2 moved

Legend:

Unmodified
Added
Removed
  • .gitignore

    r5cb5f842 r56c3935  
    2727# generated by bison and lex from cfa.y and lex.l, respectively
    2828src/Parser/cfa.output
    29 src/Parser/cfa.tab.cc
    30 src/Parser/cfa.tab.h
    31 src/Parser/lex.yy.cc
  • Makefile.am

    r5cb5f842 r56c3935  
     1######################## -*- Mode: Makefile-Automake -*- ######################
     2##
     3## Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
     4##
     5## The contents of this file are covered under the licence agreement in the
     6## file "LICENCE" distributed with Cforall.
     7##
     8## Makefile.am --
     9##
     10## Author           : Peter A. Buhr
     11## Created On       : Sun May 31 22:14:18 2015
     12## Last Modified By : Peter A. Buhr
     13## Last Modified On : Sun May 31 22:14:57 2015
     14## Update Count     : 1
     15###############################################################################
     16
    117AUTOMAKE_OPTIONS = foreign      # do not require all the GNU file names
    218SUBDIRS = driver src libcfa     # order important, src before libcfa because cfa-cpp used to build prelude
  • Makefile.in

    r5cb5f842 r56c3935  
    1515
    1616@SET_MAKE@
     17
     18######################## -*- Mode: Makefile-Automake -*- ######################
     19###############################################################################
    1720VPATH = @srcdir@
    1821pkgdatadir = $(datadir)/@PACKAGE@
     
    141144INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
    142145LDFLAGS = @LDFLAGS@
     146LEX = @LEX@
     147LEXLIB = @LEXLIB@
     148LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
    143149LIBOBJS = @LIBOBJS@
    144150LIBS = @LIBS@
     
    161167STRIP = @STRIP@
    162168VERSION = @VERSION@
     169YACC = @YACC@
     170YFLAGS = @YFLAGS@
    163171abs_builddir = @abs_builddir@
    164172abs_srcdir = @abs_srcdir@
  • config.h.in

    r5cb5f842 r56c3935  
    132132#undef VERSION
    133133
     134/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
     135   `char[]'. */
     136#undef YYTEXT_POINTER
     137
    134138/* Define for Solaris 2.5.1 so the uint32_t typedef from <sys/synch.h>,
    135139   <pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the
  • configure

    r5cb5f842 r56c3935  
    612612CPP
    613613RANLIB
     614LEXLIB
     615LEX_OUTPUT_ROOT
     616LEX
     617YFLAGS
     618YACC
    614619am__fastdepCC_FALSE
    615620am__fastdepCC_TRUE
     
    723728CC
    724729CFLAGS
     730YACC
     731YFLAGS
    725732CPP'
    726733
     
    13601367  CC          C compiler command
    13611368  CFLAGS      C compiler flags
     1369  YACC        The `Yet Another Compiler Compiler' implementation to use.
     1370              Defaults to the first program found out of: `bison -y', `byacc',
     1371              `yacc'.
     1372  YFLAGS      The list of arguments that will be passed by default to $YACC.
     1373              This script will default YFLAGS to the empty string to avoid a
     1374              default value of `-d' given by some make applications.
    13621375  CPP         C preprocessor
    13631376
     
    15171530
    15181531} # ac_fn_c_try_compile
    1519 
    1520 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
    1521 # -------------------------------------------
    1522 # Tests whether TYPE exists after having included INCLUDES, setting cache
    1523 # variable VAR accordingly.
    1524 ac_fn_c_check_type ()
    1525 {
    1526   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    1527   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    1528 $as_echo_n "checking for $2... " >&6; }
    1529 if eval \${$3+:} false; then :
    1530   $as_echo_n "(cached) " >&6
    1531 else
    1532   eval "$3=no"
    1533   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1534 /* end confdefs.h.  */
    1535 $4
    1536 int
    1537 main ()
    1538 {
    1539 if (sizeof ($2))
    1540          return 0;
    1541   ;
    1542   return 0;
    1543 }
    1544 _ACEOF
    1545 if ac_fn_c_try_compile "$LINENO"; then :
    1546   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1547 /* end confdefs.h.  */
    1548 $4
    1549 int
    1550 main ()
    1551 {
    1552 if (sizeof (($2)))
    1553             return 0;
    1554   ;
    1555   return 0;
    1556 }
    1557 _ACEOF
    1558 if ac_fn_c_try_compile "$LINENO"; then :
    1559 
    1560 else
    1561   eval "$3=yes"
    1562 fi
    1563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    1564 fi
    1565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    1566 fi
    1567 eval ac_res=\$$3
    1568                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
    1569 $as_echo "$ac_res" >&6; }
    1570   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    1571 
    1572 } # ac_fn_c_check_type
    1573 
    1574 # ac_fn_c_try_cpp LINENO
    1575 # ----------------------
    1576 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
    1577 ac_fn_c_try_cpp ()
    1578 {
    1579   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    1580   if { { ac_try="$ac_cpp conftest.$ac_ext"
    1581 case "(($ac_try" in
    1582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    1583   *) ac_try_echo=$ac_try;;
    1584 esac
    1585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    1586 $as_echo "$ac_try_echo"; } >&5
    1587   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
    1588   ac_status=$?
    1589   if test -s conftest.err; then
    1590     grep -v '^ *+' conftest.err >conftest.er1
    1591     cat conftest.er1 >&5
    1592     mv -f conftest.er1 conftest.err
    1593   fi
    1594   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    1595   test $ac_status = 0; } > conftest.i && {
    1596          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
    1597          test ! -s conftest.err
    1598        }; then :
    1599   ac_retval=0
    1600 else
    1601   $as_echo "$as_me: failed program was:" >&5
    1602 sed 's/^/| /' conftest.$ac_ext >&5
    1603 
    1604     ac_retval=1
    1605 fi
    1606   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    1607   as_fn_set_status $ac_retval
    1608 
    1609 } # ac_fn_c_try_cpp
    1610 
    1611 # ac_fn_c_try_run LINENO
    1612 # ----------------------
    1613 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
    1614 # that executables *can* be run.
    1615 ac_fn_c_try_run ()
    1616 {
    1617   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    1618   if { { ac_try="$ac_link"
    1619 case "(($ac_try" in
    1620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    1621   *) ac_try_echo=$ac_try;;
    1622 esac
    1623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    1624 $as_echo "$ac_try_echo"; } >&5
    1625   (eval "$ac_link") 2>&5
    1626   ac_status=$?
    1627   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    1628   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
    1629   { { case "(($ac_try" in
    1630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    1631   *) ac_try_echo=$ac_try;;
    1632 esac
    1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    1634 $as_echo "$ac_try_echo"; } >&5
    1635   (eval "$ac_try") 2>&5
    1636   ac_status=$?
    1637   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    1638   test $ac_status = 0; }; }; then :
    1639   ac_retval=0
    1640 else
    1641   $as_echo "$as_me: program exited with status $ac_status" >&5
    1642        $as_echo "$as_me: failed program was:" >&5
    1643 sed 's/^/| /' conftest.$ac_ext >&5
    1644 
    1645        ac_retval=$ac_status
    1646 fi
    1647   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
    1648   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    1649   as_fn_set_status $ac_retval
    1650 
    1651 } # ac_fn_c_try_run
    1652 
    1653 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
    1654 # -------------------------------------------------------
    1655 # Tests whether HEADER exists and can be compiled using the include files in
    1656 # INCLUDES, setting the cache variable VAR accordingly.
    1657 ac_fn_c_check_header_compile ()
    1658 {
    1659   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    1660   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    1661 $as_echo_n "checking for $2... " >&6; }
    1662 if eval \${$3+:} false; then :
    1663   $as_echo_n "(cached) " >&6
    1664 else
    1665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1666 /* end confdefs.h.  */
    1667 $4
    1668 #include <$2>
    1669 _ACEOF
    1670 if ac_fn_c_try_compile "$LINENO"; then :
    1671   eval "$3=yes"
    1672 else
    1673   eval "$3=no"
    1674 fi
    1675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    1676 fi
    1677 eval ac_res=\$$3
    1678                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
    1679 $as_echo "$ac_res" >&6; }
    1680   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    1681 
    1682 } # ac_fn_c_check_header_compile
    16831532
    16841533# ac_fn_c_try_link LINENO
     
    17271576
    17281577} # ac_fn_c_try_link
     1578
     1579# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
     1580# -------------------------------------------
     1581# Tests whether TYPE exists after having included INCLUDES, setting cache
     1582# variable VAR accordingly.
     1583ac_fn_c_check_type ()
     1584{
     1585  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1586  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     1587$as_echo_n "checking for $2... " >&6; }
     1588if eval \${$3+:} false; then :
     1589  $as_echo_n "(cached) " >&6
     1590else
     1591  eval "$3=no"
     1592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1593/* end confdefs.h.  */
     1594$4
     1595int
     1596main ()
     1597{
     1598if (sizeof ($2))
     1599         return 0;
     1600  ;
     1601  return 0;
     1602}
     1603_ACEOF
     1604if ac_fn_c_try_compile "$LINENO"; then :
     1605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1606/* end confdefs.h.  */
     1607$4
     1608int
     1609main ()
     1610{
     1611if (sizeof (($2)))
     1612            return 0;
     1613  ;
     1614  return 0;
     1615}
     1616_ACEOF
     1617if ac_fn_c_try_compile "$LINENO"; then :
     1618
     1619else
     1620  eval "$3=yes"
     1621fi
     1622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     1623fi
     1624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     1625fi
     1626eval ac_res=\$$3
     1627               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     1628$as_echo "$ac_res" >&6; }
     1629  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     1630
     1631} # ac_fn_c_check_type
     1632
     1633# ac_fn_c_try_cpp LINENO
     1634# ----------------------
     1635# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
     1636ac_fn_c_try_cpp ()
     1637{
     1638  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1639  if { { ac_try="$ac_cpp conftest.$ac_ext"
     1640case "(($ac_try" in
     1641  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1642  *) ac_try_echo=$ac_try;;
     1643esac
     1644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1645$as_echo "$ac_try_echo"; } >&5
     1646  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
     1647  ac_status=$?
     1648  if test -s conftest.err; then
     1649    grep -v '^ *+' conftest.err >conftest.er1
     1650    cat conftest.er1 >&5
     1651    mv -f conftest.er1 conftest.err
     1652  fi
     1653  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1654  test $ac_status = 0; } > conftest.i && {
     1655         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     1656         test ! -s conftest.err
     1657       }; then :
     1658  ac_retval=0
     1659else
     1660  $as_echo "$as_me: failed program was:" >&5
     1661sed 's/^/| /' conftest.$ac_ext >&5
     1662
     1663    ac_retval=1
     1664fi
     1665  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     1666  as_fn_set_status $ac_retval
     1667
     1668} # ac_fn_c_try_cpp
     1669
     1670# ac_fn_c_try_run LINENO
     1671# ----------------------
     1672# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
     1673# that executables *can* be run.
     1674ac_fn_c_try_run ()
     1675{
     1676  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1677  if { { ac_try="$ac_link"
     1678case "(($ac_try" in
     1679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1680  *) ac_try_echo=$ac_try;;
     1681esac
     1682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1683$as_echo "$ac_try_echo"; } >&5
     1684  (eval "$ac_link") 2>&5
     1685  ac_status=$?
     1686  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1687  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
     1688  { { case "(($ac_try" in
     1689  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1690  *) ac_try_echo=$ac_try;;
     1691esac
     1692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1693$as_echo "$ac_try_echo"; } >&5
     1694  (eval "$ac_try") 2>&5
     1695  ac_status=$?
     1696  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1697  test $ac_status = 0; }; }; then :
     1698  ac_retval=0
     1699else
     1700  $as_echo "$as_me: program exited with status $ac_status" >&5
     1701       $as_echo "$as_me: failed program was:" >&5
     1702sed 's/^/| /' conftest.$ac_ext >&5
     1703
     1704       ac_retval=$ac_status
     1705fi
     1706  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
     1707  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     1708  as_fn_set_status $ac_retval
     1709
     1710} # ac_fn_c_try_run
     1711
     1712# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
     1713# -------------------------------------------------------
     1714# Tests whether HEADER exists and can be compiled using the include files in
     1715# INCLUDES, setting the cache variable VAR accordingly.
     1716ac_fn_c_check_header_compile ()
     1717{
     1718  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1719  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     1720$as_echo_n "checking for $2... " >&6; }
     1721if eval \${$3+:} false; then :
     1722  $as_echo_n "(cached) " >&6
     1723else
     1724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1725/* end confdefs.h.  */
     1726$4
     1727#include <$2>
     1728_ACEOF
     1729if ac_fn_c_try_compile "$LINENO"; then :
     1730  eval "$3=yes"
     1731else
     1732  eval "$3=no"
     1733fi
     1734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     1735fi
     1736eval ac_res=\$$3
     1737               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     1738$as_echo "$ac_res" >&6; }
     1739  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     1740
     1741} # ac_fn_c_check_header_compile
    17291742
    17301743# ac_fn_c_check_func LINENO FUNC VAR
     
    37203733fi
    37213734
    3722 
    3723 for ac_prog in gawk mawk nawk awk
    3724 do
    3725   # Extract the first word of "$ac_prog", so it can be a program name with args.
    3726 set dummy $ac_prog; ac_word=$2
    3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    3728 $as_echo_n "checking for $ac_word... " >&6; }
    3729 if ${ac_cv_prog_AWK+:} false; then :
    3730   $as_echo_n "(cached) " >&6
    3731 else
    3732   if test -n "$AWK"; then
    3733   ac_cv_prog_AWK="$AWK" # Let the user override the test.
    3734 else
    3735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    3736 for as_dir in $PATH
    3737 do
    3738   IFS=$as_save_IFS
    3739   test -z "$as_dir" && as_dir=.
    3740     for ac_exec_ext in '' $ac_executable_extensions; do
    3741   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    3742     ac_cv_prog_AWK="$ac_prog"
    3743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    3744     break 2
    3745   fi
    3746 done
    3747   done
    3748 IFS=$as_save_IFS
    3749 
    3750 fi
    3751 fi
    3752 AWK=$ac_cv_prog_AWK
    3753 if test -n "$AWK"; then
    3754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
    3755 $as_echo "$AWK" >&6; }
    3756 else
    3757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    3758 $as_echo "no" >&6; }
    3759 fi
    3760 
    3761 
    3762   test -n "$AWK" && break
    3763 done
    37643735
    37653736ac_ext=c
     
    45574528
    45584529        # deprecated
     4530for ac_prog in 'bison -y' byacc
     4531do
     4532  # Extract the first word of "$ac_prog", so it can be a program name with args.
     4533set dummy $ac_prog; ac_word=$2
     4534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     4535$as_echo_n "checking for $ac_word... " >&6; }
     4536if ${ac_cv_prog_YACC+:} false; then :
     4537  $as_echo_n "(cached) " >&6
     4538else
     4539  if test -n "$YACC"; then
     4540  ac_cv_prog_YACC="$YACC" # Let the user override the test.
     4541else
     4542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4543for as_dir in $PATH
     4544do
     4545  IFS=$as_save_IFS
     4546  test -z "$as_dir" && as_dir=.
     4547    for ac_exec_ext in '' $ac_executable_extensions; do
     4548  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     4549    ac_cv_prog_YACC="$ac_prog"
     4550    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     4551    break 2
     4552  fi
     4553done
     4554  done
     4555IFS=$as_save_IFS
     4556
     4557fi
     4558fi
     4559YACC=$ac_cv_prog_YACC
     4560if test -n "$YACC"; then
     4561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
     4562$as_echo "$YACC" >&6; }
     4563else
     4564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4565$as_echo "no" >&6; }
     4566fi
     4567
     4568
     4569  test -n "$YACC" && break
     4570done
     4571test -n "$YACC" || YACC="yacc"
     4572
     4573
     4574for ac_prog in flex lex
     4575do
     4576  # Extract the first word of "$ac_prog", so it can be a program name with args.
     4577set dummy $ac_prog; ac_word=$2
     4578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     4579$as_echo_n "checking for $ac_word... " >&6; }
     4580if ${ac_cv_prog_LEX+:} false; then :
     4581  $as_echo_n "(cached) " >&6
     4582else
     4583  if test -n "$LEX"; then
     4584  ac_cv_prog_LEX="$LEX" # Let the user override the test.
     4585else
     4586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4587for as_dir in $PATH
     4588do
     4589  IFS=$as_save_IFS
     4590  test -z "$as_dir" && as_dir=.
     4591    for ac_exec_ext in '' $ac_executable_extensions; do
     4592  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     4593    ac_cv_prog_LEX="$ac_prog"
     4594    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     4595    break 2
     4596  fi
     4597done
     4598  done
     4599IFS=$as_save_IFS
     4600
     4601fi
     4602fi
     4603LEX=$ac_cv_prog_LEX
     4604if test -n "$LEX"; then
     4605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
     4606$as_echo "$LEX" >&6; }
     4607else
     4608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4609$as_echo "no" >&6; }
     4610fi
     4611
     4612
     4613  test -n "$LEX" && break
     4614done
     4615test -n "$LEX" || LEX=":"
     4616
     4617if test "x$LEX" != "x:"; then
     4618  cat >conftest.l <<_ACEOF
     4619%%
     4620a { ECHO; }
     4621b { REJECT; }
     4622c { yymore (); }
     4623d { yyless (1); }
     4624e { yyless (input () != 0); }
     4625f { unput (yytext[0]); }
     4626. { BEGIN INITIAL; }
     4627%%
     4628#ifdef YYTEXT_POINTER
     4629extern char *yytext;
     4630#endif
     4631int
     4632main (void)
     4633{
     4634  return ! yylex () + ! yywrap ();
     4635}
     4636_ACEOF
     4637{ { ac_try="$LEX conftest.l"
     4638case "(($ac_try" in
     4639  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     4640  *) ac_try_echo=$ac_try;;
     4641esac
     4642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     4643$as_echo "$ac_try_echo"; } >&5
     4644  (eval "$LEX conftest.l") 2>&5
     4645  ac_status=$?
     4646  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     4647  test $ac_status = 0; }
     4648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
     4649$as_echo_n "checking lex output file root... " >&6; }
     4650if ${ac_cv_prog_lex_root+:} false; then :
     4651  $as_echo_n "(cached) " >&6
     4652else
     4653
     4654if test -f lex.yy.c; then
     4655  ac_cv_prog_lex_root=lex.yy
     4656elif test -f lexyy.c; then
     4657  ac_cv_prog_lex_root=lexyy
     4658else
     4659  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
     4660fi
     4661fi
     4662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
     4663$as_echo "$ac_cv_prog_lex_root" >&6; }
     4664LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
     4665
     4666if test -z "${LEXLIB+set}"; then
     4667  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
     4668$as_echo_n "checking lex library... " >&6; }
     4669if ${ac_cv_lib_lex+:} false; then :
     4670  $as_echo_n "(cached) " >&6
     4671else
     4672
     4673    ac_save_LIBS=$LIBS
     4674    ac_cv_lib_lex='none needed'
     4675    for ac_lib in '' -lfl -ll; do
     4676      LIBS="$ac_lib $ac_save_LIBS"
     4677      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     4678/* end confdefs.h.  */
     4679`cat $LEX_OUTPUT_ROOT.c`
     4680_ACEOF
     4681if ac_fn_c_try_link "$LINENO"; then :
     4682  ac_cv_lib_lex=$ac_lib
     4683fi
     4684rm -f core conftest.err conftest.$ac_objext \
     4685    conftest$ac_exeext conftest.$ac_ext
     4686      test "$ac_cv_lib_lex" != 'none needed' && break
     4687    done
     4688    LIBS=$ac_save_LIBS
     4689
     4690fi
     4691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
     4692$as_echo "$ac_cv_lib_lex" >&6; }
     4693  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
     4694fi
     4695
     4696
     4697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
     4698$as_echo_n "checking whether yytext is a pointer... " >&6; }
     4699if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
     4700  $as_echo_n "(cached) " >&6
     4701else
     4702  # POSIX says lex can declare yytext either as a pointer or an array; the
     4703# default is implementation-dependent.  Figure out which it is, since
     4704# not all implementations provide the %pointer and %array declarations.
     4705ac_cv_prog_lex_yytext_pointer=no
     4706ac_save_LIBS=$LIBS
     4707LIBS="$LEXLIB $ac_save_LIBS"
     4708cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     4709/* end confdefs.h.  */
     4710
     4711  #define YYTEXT_POINTER 1
     4712`cat $LEX_OUTPUT_ROOT.c`
     4713_ACEOF
     4714if ac_fn_c_try_link "$LINENO"; then :
     4715  ac_cv_prog_lex_yytext_pointer=yes
     4716fi
     4717rm -f core conftest.err conftest.$ac_objext \
     4718    conftest$ac_exeext conftest.$ac_ext
     4719LIBS=$ac_save_LIBS
     4720
     4721fi
     4722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
     4723$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
     4724if test $ac_cv_prog_lex_yytext_pointer = yes; then
     4725
     4726$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
     4727
     4728fi
     4729rm -f conftest.l $LEX_OUTPUT_ROOT.c
     4730
     4731fi
    45594732
    45604733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
     
    46854858
    46864859# Checks for header files.
    4687 
    46884860ac_ext=c
    46894861ac_cpp='$CPP $CPPFLAGS'
  • configure.ac

    r5cb5f842 r56c3935  
    6464# Checks for programs.
    6565AC_PROG_CXX
    66 AC_PROG_AWK
    6766AC_PROG_CC
    6867AM_PROG_CC_C_O  # deprecated
     68AC_PROG_YACC
     69AC_PROG_LEX
    6970AC_PROG_INSTALL
    7071AC_PROG_MAKE_SET
  • driver/Makefile.in

    r5cb5f842 r56c3935  
    106106INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
    107107LDFLAGS = @LDFLAGS@
     108LEX = @LEX@
     109LEXLIB = @LEXLIB@
     110LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
    108111LIBOBJS = @LIBOBJS@
    109112LIBS = @LIBS@
     
    126129STRIP = @STRIP@
    127130VERSION = @VERSION@
     131YACC = @YACC@
     132YFLAGS = @YFLAGS@
    128133abs_builddir = @abs_builddir@
    129134abs_srcdir = @abs_srcdir@
  • libcfa/Makefile.in

    r5cb5f842 r56c3935  
    132132INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
    133133LDFLAGS = @LDFLAGS@
     134LEX = @LEX@
     135LEXLIB = @LEXLIB@
     136LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
    134137LIBOBJS = @LIBOBJS@
    135138LIBS = @LIBS@
     
    152155STRIP = @STRIP@
    153156VERSION = @VERSION@
     157YACC = @YACC@
     158YFLAGS = @YFLAGS@
    154159abs_builddir = @abs_builddir@
    155160abs_srcdir = @abs_srcdir@
  • src/Makefile.am

    r5cb5f842 r56c3935  
    1111## Created On       : Sun May 31 08:51:46 2015
    1212## Last Modified By : Peter A. Buhr
    13 ## Last Modified On : Sun May 31 08:53:24 2015
    14 ## Update Count     : 2
     13## Last Modified On : Sun May 31 23:49:23 2015
     14## Update Count     : 11
    1515###############################################################################
    1616
     
    4141# need files Common/utility.h and Parser/lex.h
    4242cfa_cpp_CXXFLAGS = -Wno-deprecated -Wall -DDEBUG_ALL -I${srcdir}/Common -I${srcdir}/Parser
    43 
  • src/Makefile.in

    r5cb5f842 r56c3935  
    4545        $(srcdir)/Makefile.in $(srcdir)/Parser/module.mk \
    4646        $(srcdir)/ResolvExpr/module.mk $(srcdir)/SymTab/module.mk \
    47         $(srcdir)/SynTree/module.mk $(srcdir)/Tuples/module.mk
     47        $(srcdir)/SynTree/module.mk $(srcdir)/Tuples/module.mk \
     48        Parser/lex.cc Parser/parser.cc Parser/parser.h
    4849cfa_cpplib_PROGRAMS = cfa-cpp$(EXEEXT)
    4950subdir = src
     
    8990        InitTweak/cfa_cpp-Association.$(OBJEXT) \
    9091        InitTweak/cfa_cpp-RemoveInit.$(OBJEXT) \
    91         Parser/cfa_cpp-cfa.tab.$(OBJEXT) \
    92         Parser/cfa_cpp-lex.yy.$(OBJEXT) \
     92        Parser/cfa_cpp-parser.$(OBJEXT) Parser/cfa_cpp-lex.$(OBJEXT) \
    9393        Parser/cfa_cpp-TypedefTable.$(OBJEXT) \
    9494        Parser/cfa_cpp-ParseNode.$(OBJEXT) \
     
    176176CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \
    177177        -o $@
     178@MAINTAINER_MODE_FALSE@am__skiplex = test -f $@ ||
     179LEXCOMPILE = $(LEX) $(AM_LFLAGS) $(LFLAGS)
     180YLWRAP = $(top_srcdir)/automake/ylwrap
     181@MAINTAINER_MODE_FALSE@am__skipyacc = test -f $@ ||
     182YACCCOMPILE = $(YACC) $(AM_YFLAGS) $(YFLAGS)
     183COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
     184        $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
     185CCLD = $(CC)
     186LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
    178187SOURCES = $(cfa_cpp_SOURCES)
    179188DIST_SOURCES = $(cfa_cpp_SOURCES)
     
    217226INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
    218227LDFLAGS = @LDFLAGS@
     228LEX = @LEX@
     229LEXLIB = @LEXLIB@
     230LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
    219231LIBOBJS = @LIBOBJS@
    220232LIBS = -lfl
     
    237249STRIP = @STRIP@
    238250VERSION = @VERSION@
     251YACC = @YACC@
     252YFLAGS = @YFLAGS@
    239253abs_builddir = @abs_builddir@
    240254abs_srcdir = @abs_srcdir@
     
    283297# create object files in directory with source files
    284298AUTOMAKE_OPTIONS = subdir-objects
    285 #LFLAGS=
    286299SRC = main.cc MakeLibCfa.cc CodeGen/Generate.cc \
    287300        CodeGen/CodeGenerator2.cc CodeGen/GenType.cc \
     
    298311        InitTweak/InitModel.cc InitTweak/InitExpander.cc \
    299312        InitTweak/Mutate.cc InitTweak/Association.cc \
    300         InitTweak/RemoveInit.cc Parser/cfa.tab.cc Parser/lex.yy.cc \
     313        InitTweak/RemoveInit.cc Parser/parser.yy Parser/lex.ll \
    301314        Parser/TypedefTable.cc Parser/ParseNode.cc \
    302315        Parser/DeclarationNode.cc Parser/ExpressionNode.cc \
     
    332345        Tuples/FunctionFixer.cc Tuples/TupleAssignment.cc \
    333346        Tuples/FunctionChecker.cc Tuples/NameMatcher.cc
    334 BUILT_SOURCES = Parser/cfa.tab.cc Parser/lex.yy.cc Parser/cfa.tab.h
    335 YACC = bison
    336 YFLAGS = -d --debug -v
    337 LEX = flex
     347BUILT_SOURCES = Parser/parser.h
     348AM_YFLAGS = -d -t -v
     349MAINTAINERCLEANFILES = Parser/parser.output
    338350
    339351# Is there a way to use a variable for the directory names?
     
    348360
    349361.SUFFIXES:
    350 .SUFFIXES: .cc .o .obj
     362.SUFFIXES: .cc .ll .o .obj .yy
    351363$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/ArgTweak/module.mk $(srcdir)/CodeGen/module.mk $(srcdir)/Common/module.mk $(srcdir)/ControlStruct/module.mk $(srcdir)/Designators/module.mk $(srcdir)/GenPoly/module.mk $(srcdir)/InitTweak/module.mk $(srcdir)/Parser/module.mk $(srcdir)/ResolvExpr/module.mk $(srcdir)/SymTab/module.mk $(srcdir)/SynTree/module.mk $(srcdir)/Tuples/module.mk $(am__configure_deps)
    352364        @for dep in $?; do \
     
    518530InitTweak/cfa_cpp-RemoveInit.$(OBJEXT): InitTweak/$(am__dirstamp) \
    519531        InitTweak/$(DEPDIR)/$(am__dirstamp)
     532Parser/parser.h: Parser/parser.cc
     533        @if test ! -f $@; then rm -f Parser/parser.cc; else :; fi
     534        @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) Parser/parser.cc; else :; fi
    520535Parser/$(am__dirstamp):
    521536        @$(MKDIR_P) Parser
     
    524539        @$(MKDIR_P) Parser/$(DEPDIR)
    525540        @: > Parser/$(DEPDIR)/$(am__dirstamp)
    526 Parser/cfa_cpp-cfa.tab.$(OBJEXT): Parser/$(am__dirstamp) \
     541Parser/cfa_cpp-parser.$(OBJEXT): Parser/$(am__dirstamp) \
    527542        Parser/$(DEPDIR)/$(am__dirstamp)
    528 Parser/cfa_cpp-lex.yy.$(OBJEXT): Parser/$(am__dirstamp) \
     543Parser/cfa_cpp-lex.$(OBJEXT): Parser/$(am__dirstamp) \
    529544        Parser/$(DEPDIR)/$(am__dirstamp)
    530545Parser/cfa_cpp-TypedefTable.$(OBJEXT): Parser/$(am__dirstamp) \
     
    745760        -rm -f Parser/cfa_cpp-TypeData.$(OBJEXT)
    746761        -rm -f Parser/cfa_cpp-TypedefTable.$(OBJEXT)
    747         -rm -f Parser/cfa_cpp-cfa.tab.$(OBJEXT)
    748         -rm -f Parser/cfa_cpp-lex.yy.$(OBJEXT)
     762        -rm -f Parser/cfa_cpp-lex.$(OBJEXT)
     763        -rm -f Parser/cfa_cpp-parser.$(OBJEXT)
    749764        -rm -f Parser/cfa_cpp-parseutility.$(OBJEXT)
    750765        -rm -f ResolvExpr/cfa_cpp-AdjustExprType.$(OBJEXT)
     
    853868@AMDEP_TRUE@@am__include@ @am__quote@Parser/$(DEPDIR)/cfa_cpp-TypeData.Po@am__quote@
    854869@AMDEP_TRUE@@am__include@ @am__quote@Parser/$(DEPDIR)/cfa_cpp-TypedefTable.Po@am__quote@
    855 @AMDEP_TRUE@@am__include@ @am__quote@Parser/$(DEPDIR)/cfa_cpp-cfa.tab.Po@am__quote@
    856 @AMDEP_TRUE@@am__include@ @am__quote@Parser/$(DEPDIR)/cfa_cpp-lex.yy.Po@am__quote@
     870@AMDEP_TRUE@@am__include@ @am__quote@Parser/$(DEPDIR)/cfa_cpp-lex.Po@am__quote@
     871@AMDEP_TRUE@@am__include@ @am__quote@Parser/$(DEPDIR)/cfa_cpp-parser.Po@am__quote@
    857872@AMDEP_TRUE@@am__include@ @am__quote@Parser/$(DEPDIR)/cfa_cpp-parseutility.Po@am__quote@
    858873@AMDEP_TRUE@@am__include@ @am__quote@ResolvExpr/$(DEPDIR)/cfa_cpp-AdjustExprType.Po@am__quote@
     
    13681383@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cfa_cpp_CXXFLAGS) $(CXXFLAGS) -c -o InitTweak/cfa_cpp-RemoveInit.obj `if test -f 'InitTweak/RemoveInit.cc'; then $(CYGPATH_W) 'InitTweak/RemoveInit.cc'; else $(CYGPATH_W) '$(srcdir)/InitTweak/RemoveInit.cc'; fi`
    13691384
    1370 Parser/cfa_cpp-cfa.tab.o: Parser/cfa.tab.cc
    1371 @am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cfa_cpp_CXXFLAGS) $(CXXFLAGS) -MT Parser/cfa_cpp-cfa.tab.o -MD -MP -MF Parser/$(DEPDIR)/cfa_cpp-cfa.tab.Tpo -c -o Parser/cfa_cpp-cfa.tab.o `test -f 'Parser/cfa.tab.cc' || echo '$(srcdir)/'`Parser/cfa.tab.cc
    1372 @am__fastdepCXX_TRUE@   $(am__mv) Parser/$(DEPDIR)/cfa_cpp-cfa.tab.Tpo Parser/$(DEPDIR)/cfa_cpp-cfa.tab.Po
    1373 @AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='Parser/cfa.tab.cc' object='Parser/cfa_cpp-cfa.tab.o' libtool=no @AMDEPBACKSLASH@
    1374 @AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
    1375 @am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cfa_cpp_CXXFLAGS) $(CXXFLAGS) -c -o Parser/cfa_cpp-cfa.tab.o `test -f 'Parser/cfa.tab.cc' || echo '$(srcdir)/'`Parser/cfa.tab.cc
    1376 
    1377 Parser/cfa_cpp-cfa.tab.obj: Parser/cfa.tab.cc
    1378 @am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cfa_cpp_CXXFLAGS) $(CXXFLAGS) -MT Parser/cfa_cpp-cfa.tab.obj -MD -MP -MF Parser/$(DEPDIR)/cfa_cpp-cfa.tab.Tpo -c -o Parser/cfa_cpp-cfa.tab.obj `if test -f 'Parser/cfa.tab.cc'; then $(CYGPATH_W) 'Parser/cfa.tab.cc'; else $(CYGPATH_W) '$(srcdir)/Parser/cfa.tab.cc'; fi`
    1379 @am__fastdepCXX_TRUE@   $(am__mv) Parser/$(DEPDIR)/cfa_cpp-cfa.tab.Tpo Parser/$(DEPDIR)/cfa_cpp-cfa.tab.Po
    1380 @AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='Parser/cfa.tab.cc' object='Parser/cfa_cpp-cfa.tab.obj' libtool=no @AMDEPBACKSLASH@
    1381 @AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
    1382 @am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cfa_cpp_CXXFLAGS) $(CXXFLAGS) -c -o Parser/cfa_cpp-cfa.tab.obj `if test -f 'Parser/cfa.tab.cc'; then $(CYGPATH_W) 'Parser/cfa.tab.cc'; else $(CYGPATH_W) '$(srcdir)/Parser/cfa.tab.cc'; fi`
    1383 
    1384 Parser/cfa_cpp-lex.yy.o: Parser/lex.yy.cc
    1385 @am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cfa_cpp_CXXFLAGS) $(CXXFLAGS) -MT Parser/cfa_cpp-lex.yy.o -MD -MP -MF Parser/$(DEPDIR)/cfa_cpp-lex.yy.Tpo -c -o Parser/cfa_cpp-lex.yy.o `test -f 'Parser/lex.yy.cc' || echo '$(srcdir)/'`Parser/lex.yy.cc
    1386 @am__fastdepCXX_TRUE@   $(am__mv) Parser/$(DEPDIR)/cfa_cpp-lex.yy.Tpo Parser/$(DEPDIR)/cfa_cpp-lex.yy.Po
    1387 @AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='Parser/lex.yy.cc' object='Parser/cfa_cpp-lex.yy.o' libtool=no @AMDEPBACKSLASH@
    1388 @AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
    1389 @am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cfa_cpp_CXXFLAGS) $(CXXFLAGS) -c -o Parser/cfa_cpp-lex.yy.o `test -f 'Parser/lex.yy.cc' || echo '$(srcdir)/'`Parser/lex.yy.cc
    1390 
    1391 Parser/cfa_cpp-lex.yy.obj: Parser/lex.yy.cc
    1392 @am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cfa_cpp_CXXFLAGS) $(CXXFLAGS) -MT Parser/cfa_cpp-lex.yy.obj -MD -MP -MF Parser/$(DEPDIR)/cfa_cpp-lex.yy.Tpo -c -o Parser/cfa_cpp-lex.yy.obj `if test -f 'Parser/lex.yy.cc'; then $(CYGPATH_W) 'Parser/lex.yy.cc'; else $(CYGPATH_W) '$(srcdir)/Parser/lex.yy.cc'; fi`
    1393 @am__fastdepCXX_TRUE@   $(am__mv) Parser/$(DEPDIR)/cfa_cpp-lex.yy.Tpo Parser/$(DEPDIR)/cfa_cpp-lex.yy.Po
    1394 @AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='Parser/lex.yy.cc' object='Parser/cfa_cpp-lex.yy.obj' libtool=no @AMDEPBACKSLASH@
    1395 @AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
    1396 @am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cfa_cpp_CXXFLAGS) $(CXXFLAGS) -c -o Parser/cfa_cpp-lex.yy.obj `if test -f 'Parser/lex.yy.cc'; then $(CYGPATH_W) 'Parser/lex.yy.cc'; else $(CYGPATH_W) '$(srcdir)/Parser/lex.yy.cc'; fi`
     1385Parser/cfa_cpp-parser.o: Parser/parser.cc
     1386@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cfa_cpp_CXXFLAGS) $(CXXFLAGS) -MT Parser/cfa_cpp-parser.o -MD -MP -MF Parser/$(DEPDIR)/cfa_cpp-parser.Tpo -c -o Parser/cfa_cpp-parser.o `test -f 'Parser/parser.cc' || echo '$(srcdir)/'`Parser/parser.cc
     1387@am__fastdepCXX_TRUE@   $(am__mv) Parser/$(DEPDIR)/cfa_cpp-parser.Tpo Parser/$(DEPDIR)/cfa_cpp-parser.Po
     1388@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='Parser/parser.cc' object='Parser/cfa_cpp-parser.o' libtool=no @AMDEPBACKSLASH@
     1389@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     1390@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cfa_cpp_CXXFLAGS) $(CXXFLAGS) -c -o Parser/cfa_cpp-parser.o `test -f 'Parser/parser.cc' || echo '$(srcdir)/'`Parser/parser.cc
     1391
     1392Parser/cfa_cpp-parser.obj: Parser/parser.cc
     1393@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cfa_cpp_CXXFLAGS) $(CXXFLAGS) -MT Parser/cfa_cpp-parser.obj -MD -MP -MF Parser/$(DEPDIR)/cfa_cpp-parser.Tpo -c -o Parser/cfa_cpp-parser.obj `if test -f 'Parser/parser.cc'; then $(CYGPATH_W) 'Parser/parser.cc'; else $(CYGPATH_W) '$(srcdir)/Parser/parser.cc'; fi`
     1394@am__fastdepCXX_TRUE@   $(am__mv) Parser/$(DEPDIR)/cfa_cpp-parser.Tpo Parser/$(DEPDIR)/cfa_cpp-parser.Po
     1395@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='Parser/parser.cc' object='Parser/cfa_cpp-parser.obj' libtool=no @AMDEPBACKSLASH@
     1396@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     1397@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cfa_cpp_CXXFLAGS) $(CXXFLAGS) -c -o Parser/cfa_cpp-parser.obj `if test -f 'Parser/parser.cc'; then $(CYGPATH_W) 'Parser/parser.cc'; else $(CYGPATH_W) '$(srcdir)/Parser/parser.cc'; fi`
     1398
     1399Parser/cfa_cpp-lex.o: Parser/lex.cc
     1400@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cfa_cpp_CXXFLAGS) $(CXXFLAGS) -MT Parser/cfa_cpp-lex.o -MD -MP -MF Parser/$(DEPDIR)/cfa_cpp-lex.Tpo -c -o Parser/cfa_cpp-lex.o `test -f 'Parser/lex.cc' || echo '$(srcdir)/'`Parser/lex.cc
     1401@am__fastdepCXX_TRUE@   $(am__mv) Parser/$(DEPDIR)/cfa_cpp-lex.Tpo Parser/$(DEPDIR)/cfa_cpp-lex.Po
     1402@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='Parser/lex.cc' object='Parser/cfa_cpp-lex.o' libtool=no @AMDEPBACKSLASH@
     1403@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     1404@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cfa_cpp_CXXFLAGS) $(CXXFLAGS) -c -o Parser/cfa_cpp-lex.o `test -f 'Parser/lex.cc' || echo '$(srcdir)/'`Parser/lex.cc
     1405
     1406Parser/cfa_cpp-lex.obj: Parser/lex.cc
     1407@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cfa_cpp_CXXFLAGS) $(CXXFLAGS) -MT Parser/cfa_cpp-lex.obj -MD -MP -MF Parser/$(DEPDIR)/cfa_cpp-lex.Tpo -c -o Parser/cfa_cpp-lex.obj `if test -f 'Parser/lex.cc'; then $(CYGPATH_W) 'Parser/lex.cc'; else $(CYGPATH_W) '$(srcdir)/Parser/lex.cc'; fi`
     1408@am__fastdepCXX_TRUE@   $(am__mv) Parser/$(DEPDIR)/cfa_cpp-lex.Tpo Parser/$(DEPDIR)/cfa_cpp-lex.Po
     1409@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='Parser/lex.cc' object='Parser/cfa_cpp-lex.obj' libtool=no @AMDEPBACKSLASH@
     1410@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     1411@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cfa_cpp_CXXFLAGS) $(CXXFLAGS) -c -o Parser/cfa_cpp-lex.obj `if test -f 'Parser/lex.cc'; then $(CYGPATH_W) 'Parser/lex.cc'; else $(CYGPATH_W) '$(srcdir)/Parser/lex.cc'; fi`
    13971412
    13981413Parser/cfa_cpp-TypedefTable.o: Parser/TypedefTable.cc
     
    23892404@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
    23902405@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(cfa_cpp_CXXFLAGS) $(CXXFLAGS) -c -o Tuples/cfa_cpp-NameMatcher.obj `if test -f 'Tuples/NameMatcher.cc'; then $(CYGPATH_W) 'Tuples/NameMatcher.cc'; else $(CYGPATH_W) '$(srcdir)/Tuples/NameMatcher.cc'; fi`
     2406
     2407.ll.cc:
     2408        $(am__skiplex) $(SHELL) $(YLWRAP) $< $(LEX_OUTPUT_ROOT).c $@ -- $(LEXCOMPILE)
     2409
     2410.yy.cc:
     2411        $(am__skipyacc) $(SHELL) $(YLWRAP) $< y.tab.c $@ y.tab.h $*.h y.output $*.output -- $(YACCCOMPILE)
    23912412
    23922413ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
     
    25332554        @echo "This command is intended for maintainers to use"
    25342555        @echo "it deletes files that may require special tools to rebuild."
     2556        -rm -f Parser/lex.cc
     2557        -rm -f Parser/parser.cc
     2558        -rm -f Parser/parser.h
    25352559        -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
     2560        -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
    25362561clean: clean-am
    25372562
     
    26232648#       ArgTweak/Mutate.cc
    26242649
    2625 Parser/Parser.cc: Parser/cfa.tab.h
    2626 
    2627 Parser/cfa.tab.cc: Parser/cfa.y
    2628         ${YACC} ${YFLAGS} $< --file-prefix=Parser/cfa
    2629         -mv Parser/cfa.tab.c Parser/cfa.tab.cc
    2630 
    2631 Parser/cfa.tab.h: Parser/cfa.tab.cc
    2632 
    2633 Parser/lex.yy.cc: Parser/lex.l Parser/lex.h Parser/cfa.tab.h Parser/TypedefTable.h
    2634         ${LEX} ${LFLAGS} -o$@ $<
    2635 
    2636 #Parser/lex.yy.o: Parser/lex.yy.cc Parser/ParseNode.h
    2637 #       ${CXX} ${CXXFLAGS} -Wno-unused -c -o $@ $<
    2638 
    26392650#       Tuples/MultipleAssign.cc \
    26402651#       Tuples/FlattenTuple.cc \
  • src/Parser/Parser.cc

    r5cb5f842 r56c3935  
    1010// Created On       : Sat May 16 14:54:28 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sat May 16 14:55:59 2015
    13 // Update Count     : 2
     12// Last Modified On : Sun May 31 23:45:19 2015
     13// Update Count     : 4
    1414//
    1515
     
    1717#include "TypedefTable.h"
    1818#include "lex.h"
    19 #include "cfa.tab.h"
     19#include "parser.h"
    2020
    2121// global variables in cfa.y
  • src/Parser/lex.ll

    r5cb5f842 r56c3935  
    1010 * Created On       : Sat Sep 22 08:58:10 2001
    1111 * Last Modified By : Peter A. Buhr
    12  * Last Modified On : Tue May 19 15:41:54 2015
    13  * Update Count     : 331
     12 * Last Modified On : Sun May 31 23:41:32 2015
     13 * Update Count     : 334
    1414 */
    1515
     
    2727#include "lex.h"
    2828#include "ParseNode.h"
    29 #include "cfa.tab.h"                                                                    // YACC generated definitions based on C++ grammar
     29#include "parser.h"                                                                     // YACC generated definitions based on C++ grammar
    3030
    3131char *yyfilename;
  • src/Parser/module.mk

    r5cb5f842 r56c3935  
    88## module.mk --
    99##
    10 ## Author           : Richard C. Bilson
     10## Author           : Peter A. Buhr
    1111## Created On       : Sat May 16 15:29:09 2015
    1212## Last Modified By : Peter A. Buhr
    13 ## Last Modified On : Sat May 30 12:05:42 2015
    14 ## Update Count     : 16
     13## Last Modified On : Sun May 31 23:52:20 2015
     14## Update Count     : 76
    1515###############################################################################
    1616
    17 BUILT_SOURCES = Parser/cfa.tab.cc Parser/lex.yy.cc Parser/cfa.tab.h
     17BUILT_SOURCES = Parser/parser.h
    1818
    19 YACC=bison
    20 YFLAGS=-d --debug -v
    21 LEX=flex
    22 #LFLAGS=
     19AM_YFLAGS = -d -t -v
    2320
    24 SRC += Parser/cfa.tab.cc \
    25        Parser/lex.yy.cc \
     21MAINTAINERCLEANFILES = Parser/parser.output
     22
     23SRC += Parser/parser.yy \
     24       Parser/lex.ll \
    2625       Parser/TypedefTable.cc \
    2726       Parser/ParseNode.cc \
     
    3635
    3736LIBS += -lfl
    38 
    39 Parser/Parser.cc: Parser/cfa.tab.h
    40 
    41 Parser/cfa.tab.cc: Parser/cfa.y
    42         ${YACC} ${YFLAGS} $< --file-prefix=Parser/cfa
    43         -mv Parser/cfa.tab.c Parser/cfa.tab.cc
    44 
    45 Parser/cfa.tab.h: Parser/cfa.tab.cc
    46 
    47 Parser/lex.yy.cc: Parser/lex.l Parser/lex.h Parser/cfa.tab.h Parser/TypedefTable.h
    48         ${LEX} ${LFLAGS} -o$@ $<
    49 
    50 #Parser/lex.yy.o: Parser/lex.yy.cc Parser/ParseNode.h
    51 #       ${CXX} ${CXXFLAGS} -Wno-unused -c -o $@ $<
  • src/Parser/parser.yy

    r5cb5f842 r56c3935  
    1010// Created On       : Sat Sep  1 20:22:55 2001
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed May 27 09:20:53 2015
    13 // Update Count     : 1015
     12// Last Modified On : Sun May 31 18:50:30 2015
     13// Update Count     : 1016
    1414//
    1515
  • src/Tests/Parser/Functions.c

    r5cb5f842 r56c3935  
    151151
    152152typedef int T;
    153 
    154 int f( T (T), T T ) {
     153int f( T (*f), T t ) {
    155154    T (T);
    156155}
  • src/examples/Makefile.in

    r5cb5f842 r56c3935  
    111111INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
    112112LDFLAGS = @LDFLAGS@
     113LEX = @LEX@
     114LEXLIB = @LEXLIB@
     115LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
    113116LIBOBJS = @LIBOBJS@
    114117LIBS = @LIBS@
     
    131134STRIP = @STRIP@
    132135VERSION = @VERSION@
     136YACC = @YACC@
     137YFLAGS = @YFLAGS@
    133138abs_builddir = @abs_builddir@
    134139abs_srcdir = @abs_srcdir@
Note: See TracChangeset for help on using the changeset viewer.