Commit 832b55ad authored by anisko_r's avatar anisko_r
Browse files

2002-12-10 Robert Anisko <robert@lrde.epita.fr>

	* src/Makefile.am (SUBDIRS): Update.
	* configure.ac: Update.

	* src/cpp-to-det/Main.r: New file.  Provide a filter that converts
	C++ abstract syntax trees into deterministic C++.
	* src/cpp-to-det/Makefile.am: New file.
	* src/cpp-to-det: New directory.
parent dc5cf964
2002-12-10 Robert Anisko <robert@lrde.epita.fr>
* src/Makefile.am (SUBDIRS): Update.
* configure.ac: Update.
* src/cpp-to-det/Main.r: New file. Provide a filter that converts
C++ abstract syntax trees into deterministic C++.
* src/cpp-to-det/Makefile.am: New file.
* src/cpp-to-det: New directory.
2002-12-10 Robert Anisko <robert@lrde.epita.fr>
* src/Makefile.am (SUBDIRS): Update.
......
......@@ -145,5 +145,14 @@ COMPILER_SYNTAX_CHECK="$CXX -ansi -pedantic -fsyntax-only"
AC_SUBST(COMPILER_SYNTAX_CHECK)
# Output Files
AC_CONFIG_FILES([Makefile lib/Makefile src/Makefile src/grammar/Makefile src/deterministic/Makefile src/attribute/Makefile src/signature/Makefile src/det-to-cpp/Makefile test/Makefile])
AC_CONFIG_FILES([Makefile
lib/Makefile
src/Makefile
src/grammar/Makefile
src/deterministic/Makefile
src/attribute/Makefile
src/signature/Makefile
src/det-to-cpp/Makefile
src/cpp-to-det/Makefile
test/Makefile])
AC_OUTPUT
;; -*- Prcs -*-
(Created-By-Prcs-Version 1 3 2)
(Project-Description "Meta/SDF Grammar for C++")
(Project-Version meta-c++-grammar 0 94)
(Parent-Version meta-c++-grammar 0 93)
(Version-Log "Fix ChangeLog.")
(Project-Version meta-c++-grammar 0 95)
(Parent-Version meta-c++-grammar 0 94)
(Version-Log "2002-12-10 Robert Anisko <robert@lrde.epita.fr>
* src/Makefile.am (SUBDIRS): Update.
* configure.ac: Update.
* src/cpp-to-det/Main.r: New file. Provide a filter that converts
C++ abstract syntax trees into deterministic C++.
* src/cpp-to-det/Makefile.am: New file.
* src/cpp-to-det: New directory.")
(New-Version-Log "")
(Checkin-Time "Tue, 10 Dec 2002 18:13:18 +0100")
(Checkin-Time "Tue, 10 Dec 2002 18:31:20 +0100")
(Checkin-Login anisko_r)
(Populate-Ignore
(
......@@ -77,7 +85,7 @@
)
(Project-Keywords)
(Files
(ChangeLog (meta-c++-grammar/0_ChangeLog 1.91 640))
(ChangeLog (meta-c++-grammar/0_ChangeLog 1.92 640))
(Makefile.am (meta-c++-grammar/f/34_Makefile.a 1.2 640))
(TODO (meta-c++-grammar/f/27_TODO 1.2 640))
(README (meta-c++-grammar/g/37_README 1.1 644))
......@@ -87,7 +95,7 @@
(config/disambiguate-check.in (meta-c++-grammar/f/38_disambigua 1.6 640))
(config/sdf-check.in (meta-c++-grammar/f/37_sdf-check. 1.3 640))
(config/xt-rules.mk (meta-c++-grammar/f/35_xt-rules.m 1.6 640))
(configure.ac (meta-c++-grammar/f/44_configure. 1.12 640))
(configure.ac (meta-c++-grammar/f/44_configure. 1.13 640))
(lib/Layout.sdf (meta-c++-grammar/4_Layout.sdf 1.2 640))
(lib/Makefile.am (meta-c++-grammar/f/49_Makefile.a 1.2 640))
......@@ -100,7 +108,7 @@
(prj (meta-c++-grammar.prj) :symlink)
(src/Makefile.am (meta-c++-grammar/f/46_Makefile.a 1.7 640))
(src/Makefile.am (meta-c++-grammar/f/46_Makefile.a 1.8 640))
(src/attribute/Makefile.am (meta-c++-grammar/g/31_Makefile.a 1.2 640))
(src/attribute/Main.r (meta-c++-grammar/g/32_Main.r 1.1 640))
......@@ -418,6 +426,9 @@
(src/det-to-cpp/Makefile.am (meta-c++-grammar/g/40_Makefile.a 1.1 644))
(src/det-to-cpp/Main.r (meta-c++-grammar/g/41_Main.r 1.1 644))
(src/cpp-to-det/Makefile.am (meta-c++-grammar/g/42_Makefile.a 1.1 644))
(src/cpp-to-det/Main.r (meta-c++-grammar/g/43_Main.r 1.1 644))
(lib/stratego.pp.af (meta-c++-grammar/g/34_stratego.p 1.1 640))
(lib/stratego.pp (meta-c++-grammar/g/35_stratego.p 1.1 640))
(lib/sdf.cons.tbl (meta-c++-grammar/g/36_sdf.cons.t 1.1 640))
......
SUBDIRS = grammar deterministic signature attribute det-to-cpp
SUBDIRS = grammar deterministic signature attribute det-to-cpp cpp-to-det
module Main
imports
lib
imports
Cpp-det
rules
//
// All the following rules have the same purpose. They transform
// chunks of bare C++ into annotated C++ (in short, it simply
// add the annotations of deterministic C++ programs).
//
Expr-Prim-0 : Identifier3 (x) -> Identifier10 (x)
Expr-Prim-1 : TemplateId (x) -> TemplateId3 (x)
Expr-Prim-2 : Identifier4 (x) -> Identifier11 (x)
Expr-Prim-3 : TemplateId1 (x) -> TemplateId4 (x)
Dcl-Spec-0 : DeclSpecifier-p (x) -> DeclSpecifier-p1 (x)
Dcl-Enum-0 : Identifier6 (x) -> Identifier12 (x)
Dcl-Enum-1 : Identifier7 (x) -> Identifier13 (x)
Namespace-Def-0 : Identifier (x) -> Identifier14 (x)
Namespace-Def-1 : Identifier1 (x) -> Identifier15 (x)
Class-0 : Identifier9 (x) -> Identifier16 (x)
Class-1 : TemplateId2 (x) -> TemplateId5 (x)
Gram-Key-0 : Identifier5 (x) -> Identifier17 (x)
strategies
expr-prim = Expr-Prim-0 + Expr-Prim-1 + Expr-Prim-2 + Expr-Prim-3
dcl-spec = Dcl-Spec-0
dcl-enum = Dcl-Enum-0 + Dcl-Enum-1
namespace-def = Namespace-Def-0 + Namespace-Def-1
class = Class-0 + Class-1
gram-key = Gram-Key-0
strategies
cpp-to-det = expr-prim + dcl-spec + dcl-enum + namespace-def + class + gram-key
main = iowrap (topdown (try (cpp-to-det)))
# xt rules
include $(top_srcdir)/config/xt-rules.mk
bin_SCRIPTS = cpp-to-det
SRCS = Main.r
cpp-to-det : $(SRCS)
@SC@ -I $(top_srcdir)/lib/prelude \
-I $(top_srcdir)/src/signature \
-I $(top_srcdir)/src/cpp-to-det \
-i Main.r \
-o cpp-to-det
EXTRA_DIST = $(SRCS)
CLEANFILES = cpp-to-det *.c *.dep *.tree
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment