Commit 6b09c711 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/det-to-cpp/Main.r: New.  Provide a filter that converts C++
	programs annoted for determinstic parsing into usual C++ programs.
	* src/det-to-cpp/Makefile.am: New file.
	* src/det-to-cpp: New directory.
parent 7c5f40dc
2002-12-10 Robert Anisko <robert@lrde.epita.fr>
* src/Makefile.am (SUBDIRS): Update.
* configure.ac: Update.
* src/det-to-cpp/Main.r: New. Provide a filter that converts C++
programs annoted for determinstic parsing into usual C++ programs.
* src/det-to-cpp/Makefile.am: New file.
* src/det-to-cpp: New directory.
2002-12-10 Robert Anisko <robert@lrde.epita.fr>
* src/signature/Makefile.am: Build a signature for the
......
......@@ -145,5 +145,5 @@ 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 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 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 92)
(Parent-Version meta-c++-grammar 0 91)
(Project-Version meta-c++-grammar 0 93)
(Parent-Version meta-c++-grammar 0 92)
(Version-Log "2002-12-10 Robert Anisko <robert@lrde.epita.fr>
* src/signature/Makefile.am: Build a signature for the
determinstic flavor of the grammar.")
* src/Makefile.am (SUBDIRS): Update.
* configure.ac: Update.
* src/det-to-cpp/Main.r: New. Provide a filter that converts C++
programs annoted for determinstic parsing into usual C++ programs.
* src/det-to-cpp/Makefile.am: New file.
* src/det-to-cpp: New directory.")
(New-Version-Log "")
(Checkin-Time "Tue, 10 Dec 2002 15:30:26 +0100")
(Checkin-Time "Tue, 10 Dec 2002 18:12:27 +0100")
(Checkin-Login anisko_r)
(Populate-Ignore
(
......@@ -80,7 +85,7 @@
)
(Project-Keywords)
(Files
(ChangeLog (meta-c++-grammar/0_ChangeLog 1.89 640))
(ChangeLog (meta-c++-grammar/0_ChangeLog 1.90 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))
......@@ -90,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.11 640))
(configure.ac (meta-c++-grammar/f/44_configure. 1.12 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))
......@@ -103,7 +108,7 @@
(prj (meta-c++-grammar.prj) :symlink)
(src/Makefile.am (meta-c++-grammar/f/46_Makefile.a 1.6 640))
(src/Makefile.am (meta-c++-grammar/f/46_Makefile.a 1.7 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))
......@@ -417,6 +422,10 @@
(test/our/expressions/primary-this.cc (meta-c++-grammar/e/46_primary-th 1.1 640))
(src/signature/Makefile.am (meta-c++-grammar/g/33_Makefile.a 1.3 640))
(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))
(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
SUBDIRS = grammar deterministic signature attribute det-to-cpp
module Main
imports
lib
imports
Cpp-det
rules
//
// All the following rules have the same purpose. They transform
// chunks of annotated C++ into usual C++ (in short, it simply
// strips the annotations of deterministic C++ programs).
//
Expr-Prim-0 : Identifier10 (x) -> Identifier3 (x)
Expr-Prim-1 : TemplateId3 (x) -> TemplateId (x)
Expr-Prim-2 : Identifier11 (x) -> Identifier4 (x)
Expr-Prim-3 : TemplateId4 (x) -> TemplateId1 (x)
Expr-Prim-4 : NestedNameSpecifier (x) -> x
Dcl-Spec-0 : DeclSpecifier-p1 (x) -> DeclSpecifier-p (x)
Dcl-Enum-0 : Identifier12 (x) -> Identifier6 (x)
Dcl-Enum-1 : Identifier13 (x) -> Identifier7 (x)
Namespace-Def-0 : Identifier14 (x) -> Identifier (x)
Namespace-Def-1 : Identifier15 (x) -> Identifier1 (x)
Class-0 : Identifier16 (x) -> Identifier9 (x)
Class-1 : TemplateId5 (x) -> TemplateId2 (x)
Gram-Key-0 : Identifier17 (x) -> Identifier5 (x)
strategies
expr-prim = Expr-Prim-0 + Expr-Prim-1 + Expr-Prim-2 + Expr-Prim-3 + Expr-Prim-4
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
det-to-cpp = expr-prim + dcl-spec + dcl-enum + namespace-def + class + gram-key
main = iowrap (topdown (try (det-to-cpp)))
# xt rules
include $(top_srcdir)/config/xt-rules.mk
bin_SCRIPTS = det-to-cpp
SRCS = Main.r
det-to-cpp : $(SRCS)
@SC@ -I $(top_srcdir)/lib/prelude \
-I $(top_srcdir)/src/signature \
-I $(top_srcdir)/src/det-to-cpp \
-i Main.r \
-o det-to-cpp
EXTRA_DIST = $(SRCS)
CLEANFILES = det-to-cpp *.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