Changeset 56c3935
- Timestamp:
- Jun 1, 2015, 12:00:51 AM (10 years ago)
- 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
- Files:
-
- 2 added
- 14 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
.gitignore
r5cb5f842 r56c3935 27 27 # generated by bison and lex from cfa.y and lex.l, respectively 28 28 src/Parser/cfa.output 29 src/Parser/cfa.tab.cc30 src/Parser/cfa.tab.h31 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 1 17 AUTOMAKE_OPTIONS = foreign # do not require all the GNU file names 2 18 SUBDIRS = driver src libcfa # order important, src before libcfa because cfa-cpp used to build prelude -
Makefile.in
r5cb5f842 r56c3935 15 15 16 16 @SET_MAKE@ 17 18 ######################## -*- Mode: Makefile-Automake -*- ###################### 19 ############################################################################### 17 20 VPATH = @srcdir@ 18 21 pkgdatadir = $(datadir)/@PACKAGE@ … … 141 144 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 142 145 LDFLAGS = @LDFLAGS@ 146 LEX = @LEX@ 147 LEXLIB = @LEXLIB@ 148 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ 143 149 LIBOBJS = @LIBOBJS@ 144 150 LIBS = @LIBS@ … … 161 167 STRIP = @STRIP@ 162 168 VERSION = @VERSION@ 169 YACC = @YACC@ 170 YFLAGS = @YFLAGS@ 163 171 abs_builddir = @abs_builddir@ 164 172 abs_srcdir = @abs_srcdir@ -
config.h.in
r5cb5f842 r56c3935 132 132 #undef VERSION 133 133 134 /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a 135 `char[]'. */ 136 #undef YYTEXT_POINTER 137 134 138 /* Define for Solaris 2.5.1 so the uint32_t typedef from <sys/synch.h>, 135 139 <pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the -
configure
r5cb5f842 r56c3935 612 612 CPP 613 613 RANLIB 614 LEXLIB 615 LEX_OUTPUT_ROOT 616 LEX 617 YFLAGS 618 YACC 614 619 am__fastdepCC_FALSE 615 620 am__fastdepCC_TRUE … … 723 728 CC 724 729 CFLAGS 730 YACC 731 YFLAGS 725 732 CPP' 726 733 … … 1360 1367 CC C compiler command 1361 1368 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. 1362 1375 CPP C preprocessor 1363 1376 … … 1517 1530 1518 1531 } # ac_fn_c_try_compile 1519 1520 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES1521 # -------------------------------------------1522 # Tests whether TYPE exists after having included INCLUDES, setting cache1523 # variable VAR accordingly.1524 ac_fn_c_check_type ()1525 {1526 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&51528 $as_echo_n "checking for $2... " >&6; }1529 if eval \${$3+:} false; then :1530 $as_echo_n "(cached) " >&61531 else1532 eval "$3=no"1533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext1534 /* end confdefs.h. */1535 $41536 int1537 main ()1538 {1539 if (sizeof ($2))1540 return 0;1541 ;1542 return 0;1543 }1544 _ACEOF1545 if ac_fn_c_try_compile "$LINENO"; then :1546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext1547 /* end confdefs.h. */1548 $41549 int1550 main ()1551 {1552 if (sizeof (($2)))1553 return 0;1554 ;1555 return 0;1556 }1557 _ACEOF1558 if ac_fn_c_try_compile "$LINENO"; then :1559 1560 else1561 eval "$3=yes"1562 fi1563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext1564 fi1565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext1566 fi1567 eval ac_res=\$$31568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&51569 $as_echo "$ac_res" >&6; }1570 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno1571 1572 } # ac_fn_c_check_type1573 1574 # ac_fn_c_try_cpp LINENO1575 # ----------------------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_stack1580 if { { ac_try="$ac_cpp conftest.$ac_ext"1581 case "(($ac_try" in1582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1583 *) ac_try_echo=$ac_try;;1584 esac1585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""1586 $as_echo "$ac_try_echo"; } >&51587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err1588 ac_status=$?1589 if test -s conftest.err; then1590 grep -v '^ *+' conftest.err >conftest.er11591 cat conftest.er1 >&51592 mv -f conftest.er1 conftest.err1593 fi1594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&51595 test $ac_status = 0; } > conftest.i && {1596 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||1597 test ! -s conftest.err1598 }; then :1599 ac_retval=01600 else1601 $as_echo "$as_me: failed program was:" >&51602 sed 's/^/| /' conftest.$ac_ext >&51603 1604 ac_retval=11605 fi1606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno1607 as_fn_set_status $ac_retval1608 1609 } # ac_fn_c_try_cpp1610 1611 # ac_fn_c_try_run LINENO1612 # ----------------------1613 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes1614 # 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_stack1618 if { { ac_try="$ac_link"1619 case "(($ac_try" in1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1621 *) ac_try_echo=$ac_try;;1622 esac1623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""1624 $as_echo "$ac_try_echo"; } >&51625 (eval "$ac_link") 2>&51626 ac_status=$?1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&51628 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'1629 { { case "(($ac_try" in1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1631 *) ac_try_echo=$ac_try;;1632 esac1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""1634 $as_echo "$ac_try_echo"; } >&51635 (eval "$ac_try") 2>&51636 ac_status=$?1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&51638 test $ac_status = 0; }; }; then :1639 ac_retval=01640 else1641 $as_echo "$as_me: program exited with status $ac_status" >&51642 $as_echo "$as_me: failed program was:" >&51643 sed 's/^/| /' conftest.$ac_ext >&51644 1645 ac_retval=$ac_status1646 fi1647 rm -rf conftest.dSYM conftest_ipa8_conftest.oo1648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno1649 as_fn_set_status $ac_retval1650 1651 } # ac_fn_c_try_run1652 1653 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES1654 # -------------------------------------------------------1655 # Tests whether HEADER exists and can be compiled using the include files in1656 # 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_stack1660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&51661 $as_echo_n "checking for $2... " >&6; }1662 if eval \${$3+:} false; then :1663 $as_echo_n "(cached) " >&61664 else1665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext1666 /* end confdefs.h. */1667 $41668 #include <$2>1669 _ACEOF1670 if ac_fn_c_try_compile "$LINENO"; then :1671 eval "$3=yes"1672 else1673 eval "$3=no"1674 fi1675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext1676 fi1677 eval ac_res=\$$31678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&51679 $as_echo "$ac_res" >&6; }1680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno1681 1682 } # ac_fn_c_check_header_compile1683 1532 1684 1533 # ac_fn_c_try_link LINENO … … 1727 1576 1728 1577 } # 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. 1583 ac_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; } 1588 if eval \${$3+:} false; then : 1589 $as_echo_n "(cached) " >&6 1590 else 1591 eval "$3=no" 1592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1593 /* end confdefs.h. */ 1594 $4 1595 int 1596 main () 1597 { 1598 if (sizeof ($2)) 1599 return 0; 1600 ; 1601 return 0; 1602 } 1603 _ACEOF 1604 if ac_fn_c_try_compile "$LINENO"; then : 1605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1606 /* end confdefs.h. */ 1607 $4 1608 int 1609 main () 1610 { 1611 if (sizeof (($2))) 1612 return 0; 1613 ; 1614 return 0; 1615 } 1616 _ACEOF 1617 if ac_fn_c_try_compile "$LINENO"; then : 1618 1619 else 1620 eval "$3=yes" 1621 fi 1622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1623 fi 1624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1625 fi 1626 eval 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. 1636 ac_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" 1640 case "(($ac_try" in 1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1642 *) ac_try_echo=$ac_try;; 1643 esac 1644 eval 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 1659 else 1660 $as_echo "$as_me: failed program was:" >&5 1661 sed 's/^/| /' conftest.$ac_ext >&5 1662 1663 ac_retval=1 1664 fi 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. 1674 ac_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" 1678 case "(($ac_try" in 1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1680 *) ac_try_echo=$ac_try;; 1681 esac 1682 eval 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;; 1691 esac 1692 eval 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 1699 else 1700 $as_echo "$as_me: program exited with status $ac_status" >&5 1701 $as_echo "$as_me: failed program was:" >&5 1702 sed 's/^/| /' conftest.$ac_ext >&5 1703 1704 ac_retval=$ac_status 1705 fi 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. 1716 ac_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; } 1721 if eval \${$3+:} false; then : 1722 $as_echo_n "(cached) " >&6 1723 else 1724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1725 /* end confdefs.h. */ 1726 $4 1727 #include <$2> 1728 _ACEOF 1729 if ac_fn_c_try_compile "$LINENO"; then : 1730 eval "$3=yes" 1731 else 1732 eval "$3=no" 1733 fi 1734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1735 fi 1736 eval 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 1729 1742 1730 1743 # ac_fn_c_check_func LINENO FUNC VAR … … 3720 3733 fi 3721 3734 3722 3723 for ac_prog in gawk mawk nawk awk3724 do3725 # Extract the first word of "$ac_prog", so it can be a program name with args.3726 set dummy $ac_prog; ac_word=$23727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&53728 $as_echo_n "checking for $ac_word... " >&6; }3729 if ${ac_cv_prog_AWK+:} false; then :3730 $as_echo_n "(cached) " >&63731 else3732 if test -n "$AWK"; then3733 ac_cv_prog_AWK="$AWK" # Let the user override the test.3734 else3735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR3736 for as_dir in $PATH3737 do3738 IFS=$as_save_IFS3739 test -z "$as_dir" && as_dir=.3740 for ac_exec_ext in '' $ac_executable_extensions; do3741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then3742 ac_cv_prog_AWK="$ac_prog"3743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&53744 break 23745 fi3746 done3747 done3748 IFS=$as_save_IFS3749 3750 fi3751 fi3752 AWK=$ac_cv_prog_AWK3753 if test -n "$AWK"; then3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&53755 $as_echo "$AWK" >&6; }3756 else3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&53758 $as_echo "no" >&6; }3759 fi3760 3761 3762 test -n "$AWK" && break3763 done3764 3735 3765 3736 ac_ext=c … … 4557 4528 4558 4529 # deprecated 4530 for ac_prog in 'bison -y' byacc 4531 do 4532 # Extract the first word of "$ac_prog", so it can be a program name with args. 4533 set 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; } 4536 if ${ac_cv_prog_YACC+:} false; then : 4537 $as_echo_n "(cached) " >&6 4538 else 4539 if test -n "$YACC"; then 4540 ac_cv_prog_YACC="$YACC" # Let the user override the test. 4541 else 4542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4543 for as_dir in $PATH 4544 do 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 4553 done 4554 done 4555 IFS=$as_save_IFS 4556 4557 fi 4558 fi 4559 YACC=$ac_cv_prog_YACC 4560 if test -n "$YACC"; then 4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 4562 $as_echo "$YACC" >&6; } 4563 else 4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4565 $as_echo "no" >&6; } 4566 fi 4567 4568 4569 test -n "$YACC" && break 4570 done 4571 test -n "$YACC" || YACC="yacc" 4572 4573 4574 for ac_prog in flex lex 4575 do 4576 # Extract the first word of "$ac_prog", so it can be a program name with args. 4577 set 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; } 4580 if ${ac_cv_prog_LEX+:} false; then : 4581 $as_echo_n "(cached) " >&6 4582 else 4583 if test -n "$LEX"; then 4584 ac_cv_prog_LEX="$LEX" # Let the user override the test. 4585 else 4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4587 for as_dir in $PATH 4588 do 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 4597 done 4598 done 4599 IFS=$as_save_IFS 4600 4601 fi 4602 fi 4603 LEX=$ac_cv_prog_LEX 4604 if test -n "$LEX"; then 4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 4606 $as_echo "$LEX" >&6; } 4607 else 4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4609 $as_echo "no" >&6; } 4610 fi 4611 4612 4613 test -n "$LEX" && break 4614 done 4615 test -n "$LEX" || LEX=":" 4616 4617 if test "x$LEX" != "x:"; then 4618 cat >conftest.l <<_ACEOF 4619 %% 4620 a { ECHO; } 4621 b { REJECT; } 4622 c { yymore (); } 4623 d { yyless (1); } 4624 e { yyless (input () != 0); } 4625 f { unput (yytext[0]); } 4626 . { BEGIN INITIAL; } 4627 %% 4628 #ifdef YYTEXT_POINTER 4629 extern char *yytext; 4630 #endif 4631 int 4632 main (void) 4633 { 4634 return ! yylex () + ! yywrap (); 4635 } 4636 _ACEOF 4637 { { ac_try="$LEX conftest.l" 4638 case "(($ac_try" in 4639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4640 *) ac_try_echo=$ac_try;; 4641 esac 4642 eval 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; } 4650 if ${ac_cv_prog_lex_root+:} false; then : 4651 $as_echo_n "(cached) " >&6 4652 else 4653 4654 if test -f lex.yy.c; then 4655 ac_cv_prog_lex_root=lex.yy 4656 elif test -f lexyy.c; then 4657 ac_cv_prog_lex_root=lexyy 4658 else 4659 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 4660 fi 4661 fi 4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 4663 $as_echo "$ac_cv_prog_lex_root" >&6; } 4664 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 4665 4666 if 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; } 4669 if ${ac_cv_lib_lex+:} false; then : 4670 $as_echo_n "(cached) " >&6 4671 else 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 4681 if ac_fn_c_try_link "$LINENO"; then : 4682 ac_cv_lib_lex=$ac_lib 4683 fi 4684 rm -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 4690 fi 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 4694 fi 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; } 4699 if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 4700 $as_echo_n "(cached) " >&6 4701 else 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. 4705 ac_cv_prog_lex_yytext_pointer=no 4706 ac_save_LIBS=$LIBS 4707 LIBS="$LEXLIB $ac_save_LIBS" 4708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4709 /* end confdefs.h. */ 4710 4711 #define YYTEXT_POINTER 1 4712 `cat $LEX_OUTPUT_ROOT.c` 4713 _ACEOF 4714 if ac_fn_c_try_link "$LINENO"; then : 4715 ac_cv_prog_lex_yytext_pointer=yes 4716 fi 4717 rm -f core conftest.err conftest.$ac_objext \ 4718 conftest$ac_exeext conftest.$ac_ext 4719 LIBS=$ac_save_LIBS 4720 4721 fi 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; } 4724 if test $ac_cv_prog_lex_yytext_pointer = yes; then 4725 4726 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 4727 4728 fi 4729 rm -f conftest.l $LEX_OUTPUT_ROOT.c 4730 4731 fi 4559 4732 4560 4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 … … 4685 4858 4686 4859 # Checks for header files. 4687 4688 4860 ac_ext=c 4689 4861 ac_cpp='$CPP $CPPFLAGS' -
configure.ac
r5cb5f842 r56c3935 64 64 # Checks for programs. 65 65 AC_PROG_CXX 66 AC_PROG_AWK67 66 AC_PROG_CC 68 67 AM_PROG_CC_C_O # deprecated 68 AC_PROG_YACC 69 AC_PROG_LEX 69 70 AC_PROG_INSTALL 70 71 AC_PROG_MAKE_SET -
driver/Makefile.in
r5cb5f842 r56c3935 106 106 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 107 107 LDFLAGS = @LDFLAGS@ 108 LEX = @LEX@ 109 LEXLIB = @LEXLIB@ 110 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ 108 111 LIBOBJS = @LIBOBJS@ 109 112 LIBS = @LIBS@ … … 126 129 STRIP = @STRIP@ 127 130 VERSION = @VERSION@ 131 YACC = @YACC@ 132 YFLAGS = @YFLAGS@ 128 133 abs_builddir = @abs_builddir@ 129 134 abs_srcdir = @abs_srcdir@ -
libcfa/Makefile.in
r5cb5f842 r56c3935 132 132 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 133 133 LDFLAGS = @LDFLAGS@ 134 LEX = @LEX@ 135 LEXLIB = @LEXLIB@ 136 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ 134 137 LIBOBJS = @LIBOBJS@ 135 138 LIBS = @LIBS@ … … 152 155 STRIP = @STRIP@ 153 156 VERSION = @VERSION@ 157 YACC = @YACC@ 158 YFLAGS = @YFLAGS@ 154 159 abs_builddir = @abs_builddir@ 155 160 abs_srcdir = @abs_srcdir@ -
src/Makefile.am
r5cb5f842 r56c3935 11 11 ## Created On : Sun May 31 08:51:46 2015 12 12 ## Last Modified By : Peter A. Buhr 13 ## Last Modified On : Sun May 31 08:53:24201514 ## Update Count : 213 ## Last Modified On : Sun May 31 23:49:23 2015 14 ## Update Count : 11 15 15 ############################################################################### 16 16 … … 41 41 # need files Common/utility.h and Parser/lex.h 42 42 cfa_cpp_CXXFLAGS = -Wno-deprecated -Wall -DDEBUG_ALL -I${srcdir}/Common -I${srcdir}/Parser 43 -
src/Makefile.in
r5cb5f842 r56c3935 45 45 $(srcdir)/Makefile.in $(srcdir)/Parser/module.mk \ 46 46 $(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 48 49 cfa_cpplib_PROGRAMS = cfa-cpp$(EXEEXT) 49 50 subdir = src … … 89 90 InitTweak/cfa_cpp-Association.$(OBJEXT) \ 90 91 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) \ 93 93 Parser/cfa_cpp-TypedefTable.$(OBJEXT) \ 94 94 Parser/cfa_cpp-ParseNode.$(OBJEXT) \ … … 176 176 CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ 177 177 -o $@ 178 @MAINTAINER_MODE_FALSE@am__skiplex = test -f $@ || 179 LEXCOMPILE = $(LEX) $(AM_LFLAGS) $(LFLAGS) 180 YLWRAP = $(top_srcdir)/automake/ylwrap 181 @MAINTAINER_MODE_FALSE@am__skipyacc = test -f $@ || 182 YACCCOMPILE = $(YACC) $(AM_YFLAGS) $(YFLAGS) 183 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ 184 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) 185 CCLD = $(CC) 186 LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ 178 187 SOURCES = $(cfa_cpp_SOURCES) 179 188 DIST_SOURCES = $(cfa_cpp_SOURCES) … … 217 226 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 218 227 LDFLAGS = @LDFLAGS@ 228 LEX = @LEX@ 229 LEXLIB = @LEXLIB@ 230 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ 219 231 LIBOBJS = @LIBOBJS@ 220 232 LIBS = -lfl … … 237 249 STRIP = @STRIP@ 238 250 VERSION = @VERSION@ 251 YACC = @YACC@ 252 YFLAGS = @YFLAGS@ 239 253 abs_builddir = @abs_builddir@ 240 254 abs_srcdir = @abs_srcdir@ … … 283 297 # create object files in directory with source files 284 298 AUTOMAKE_OPTIONS = subdir-objects 285 #LFLAGS=286 299 SRC = main.cc MakeLibCfa.cc CodeGen/Generate.cc \ 287 300 CodeGen/CodeGenerator2.cc CodeGen/GenType.cc \ … … 298 311 InitTweak/InitModel.cc InitTweak/InitExpander.cc \ 299 312 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 \ 301 314 Parser/TypedefTable.cc Parser/ParseNode.cc \ 302 315 Parser/DeclarationNode.cc Parser/ExpressionNode.cc \ … … 332 345 Tuples/FunctionFixer.cc Tuples/TupleAssignment.cc \ 333 346 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 347 BUILT_SOURCES = Parser/parser.h 348 AM_YFLAGS = -d -t -v 349 MAINTAINERCLEANFILES = Parser/parser.output 338 350 339 351 # Is there a way to use a variable for the directory names? … … 348 360 349 361 .SUFFIXES: 350 .SUFFIXES: .cc . o .obj362 .SUFFIXES: .cc .ll .o .obj .yy 351 363 $(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) 352 364 @for dep in $?; do \ … … 518 530 InitTweak/cfa_cpp-RemoveInit.$(OBJEXT): InitTweak/$(am__dirstamp) \ 519 531 InitTweak/$(DEPDIR)/$(am__dirstamp) 532 Parser/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 520 535 Parser/$(am__dirstamp): 521 536 @$(MKDIR_P) Parser … … 524 539 @$(MKDIR_P) Parser/$(DEPDIR) 525 540 @: > Parser/$(DEPDIR)/$(am__dirstamp) 526 Parser/cfa_cpp- cfa.tab.$(OBJEXT): Parser/$(am__dirstamp) \541 Parser/cfa_cpp-parser.$(OBJEXT): Parser/$(am__dirstamp) \ 527 542 Parser/$(DEPDIR)/$(am__dirstamp) 528 Parser/cfa_cpp-lex. yy.$(OBJEXT): Parser/$(am__dirstamp) \543 Parser/cfa_cpp-lex.$(OBJEXT): Parser/$(am__dirstamp) \ 529 544 Parser/$(DEPDIR)/$(am__dirstamp) 530 545 Parser/cfa_cpp-TypedefTable.$(OBJEXT): Parser/$(am__dirstamp) \ … … 745 760 -rm -f Parser/cfa_cpp-TypeData.$(OBJEXT) 746 761 -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) 749 764 -rm -f Parser/cfa_cpp-parseutility.$(OBJEXT) 750 765 -rm -f ResolvExpr/cfa_cpp-AdjustExprType.$(OBJEXT) … … 853 868 @AMDEP_TRUE@@am__include@ @am__quote@Parser/$(DEPDIR)/cfa_cpp-TypeData.Po@am__quote@ 854 869 @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@ 857 872 @AMDEP_TRUE@@am__include@ @am__quote@Parser/$(DEPDIR)/cfa_cpp-parseutility.Po@am__quote@ 858 873 @AMDEP_TRUE@@am__include@ @am__quote@ResolvExpr/$(DEPDIR)/cfa_cpp-AdjustExprType.Po@am__quote@ … … 1368 1383 @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` 1369 1384 1370 Parser/cfa_cpp- cfa.tab.o: Parser/cfa.tab.cc1371 @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.cc1372 @am__fastdepCXX_TRUE@ $(am__mv) Parser/$(DEPDIR)/cfa_cpp- cfa.tab.Tpo Parser/$(DEPDIR)/cfa_cpp-cfa.tab.Po1373 @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.cc1376 1377 Parser/cfa_cpp- cfa.tab.obj: Parser/cfa.tab.cc1378 @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.Po1380 @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.cc1385 @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.cc1386 @am__fastdepCXX_TRUE@ $(am__mv) Parser/$(DEPDIR)/cfa_cpp-lex. yy.Tpo Parser/$(DEPDIR)/cfa_cpp-lex.yy.Po1387 @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.cc1390 1391 Parser/cfa_cpp-lex. yy.obj: Parser/lex.yy.cc1392 @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.Po1394 @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`1385 Parser/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 1392 Parser/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 1399 Parser/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 1406 Parser/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` 1397 1412 1398 1413 Parser/cfa_cpp-TypedefTable.o: Parser/TypedefTable.cc … … 2389 2404 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 2390 2405 @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) 2391 2412 2392 2413 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) … … 2533 2554 @echo "This command is intended for maintainers to use" 2534 2555 @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 2535 2559 -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) 2560 -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) 2536 2561 clean: clean-am 2537 2562 … … 2623 2648 # ArgTweak/Mutate.cc 2624 2649 2625 Parser/Parser.cc: Parser/cfa.tab.h2626 2627 Parser/cfa.tab.cc: Parser/cfa.y2628 ${YACC} ${YFLAGS} $< --file-prefix=Parser/cfa2629 -mv Parser/cfa.tab.c Parser/cfa.tab.cc2630 2631 Parser/cfa.tab.h: Parser/cfa.tab.cc2632 2633 Parser/lex.yy.cc: Parser/lex.l Parser/lex.h Parser/cfa.tab.h Parser/TypedefTable.h2634 ${LEX} ${LFLAGS} -o$@ $<2635 2636 #Parser/lex.yy.o: Parser/lex.yy.cc Parser/ParseNode.h2637 # ${CXX} ${CXXFLAGS} -Wno-unused -c -o $@ $<2638 2639 2650 # Tuples/MultipleAssign.cc \ 2640 2651 # Tuples/FlattenTuple.cc \ -
src/Parser/Parser.cc
r5cb5f842 r56c3935 10 10 // Created On : Sat May 16 14:54:28 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : S at May 16 14:55:59 201513 // Update Count : 212 // Last Modified On : Sun May 31 23:45:19 2015 13 // Update Count : 4 14 14 // 15 15 … … 17 17 #include "TypedefTable.h" 18 18 #include "lex.h" 19 #include " cfa.tab.h"19 #include "parser.h" 20 20 21 21 // global variables in cfa.y -
src/Parser/lex.ll
r5cb5f842 r56c3935 10 10 * Created On : Sat Sep 22 08:58:10 2001 11 11 * Last Modified By : Peter A. Buhr 12 * Last Modified On : Tue May 19 15:41:54201513 * Update Count : 33 112 * Last Modified On : Sun May 31 23:41:32 2015 13 * Update Count : 334 14 14 */ 15 15 … … 27 27 #include "lex.h" 28 28 #include "ParseNode.h" 29 #include " cfa.tab.h" // YACC generated definitions based on C++ grammar29 #include "parser.h" // YACC generated definitions based on C++ grammar 30 30 31 31 char *yyfilename; -
src/Parser/module.mk
r5cb5f842 r56c3935 8 8 ## module.mk -- 9 9 ## 10 ## Author : Richard C. Bilson10 ## Author : Peter A. Buhr 11 11 ## Created On : Sat May 16 15:29:09 2015 12 12 ## Last Modified By : Peter A. Buhr 13 ## Last Modified On : S at May 30 12:05:42201514 ## Update Count : 1613 ## Last Modified On : Sun May 31 23:52:20 2015 14 ## Update Count : 76 15 15 ############################################################################### 16 16 17 BUILT_SOURCES = Parser/ cfa.tab.cc Parser/lex.yy.cc Parser/cfa.tab.h17 BUILT_SOURCES = Parser/parser.h 18 18 19 YACC=bison 20 YFLAGS=-d --debug -v 21 LEX=flex 22 #LFLAGS= 19 AM_YFLAGS = -d -t -v 23 20 24 SRC += Parser/cfa.tab.cc \ 25 Parser/lex.yy.cc \ 21 MAINTAINERCLEANFILES = Parser/parser.output 22 23 SRC += Parser/parser.yy \ 24 Parser/lex.ll \ 26 25 Parser/TypedefTable.cc \ 27 26 Parser/ParseNode.cc \ … … 36 35 37 36 LIBS += -lfl 38 39 Parser/Parser.cc: Parser/cfa.tab.h40 41 Parser/cfa.tab.cc: Parser/cfa.y42 ${YACC} ${YFLAGS} $< --file-prefix=Parser/cfa43 -mv Parser/cfa.tab.c Parser/cfa.tab.cc44 45 Parser/cfa.tab.h: Parser/cfa.tab.cc46 47 Parser/lex.yy.cc: Parser/lex.l Parser/lex.h Parser/cfa.tab.h Parser/TypedefTable.h48 ${LEX} ${LFLAGS} -o$@ $<49 50 #Parser/lex.yy.o: Parser/lex.yy.cc Parser/ParseNode.h51 # ${CXX} ${CXXFLAGS} -Wno-unused -c -o $@ $< -
src/Parser/parser.yy
r5cb5f842 r56c3935 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed May 27 09:20:53201513 // Update Count : 101 512 // Last Modified On : Sun May 31 18:50:30 2015 13 // Update Count : 1016 14 14 // 15 15 -
src/Tests/Parser/Functions.c
r5cb5f842 r56c3935 151 151 152 152 typedef int T; 153 154 int f( T (T), T T ) { 153 int f( T (*f), T t ) { 155 154 T (T); 156 155 } -
src/examples/Makefile.in
r5cb5f842 r56c3935 111 111 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 112 112 LDFLAGS = @LDFLAGS@ 113 LEX = @LEX@ 114 LEXLIB = @LEXLIB@ 115 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ 113 116 LIBOBJS = @LIBOBJS@ 114 117 LIBS = @LIBS@ … … 131 134 STRIP = @STRIP@ 132 135 VERSION = @VERSION@ 136 YACC = @YACC@ 137 YFLAGS = @YFLAGS@ 133 138 abs_builddir = @abs_builddir@ 134 139 abs_srcdir = @abs_srcdir@
Note: See TracChangeset
for help on using the changeset viewer.