Commit 006ca3e9 authored by david_v's avatar david_v
Browse files

2003-04-10 Valentin David <david_v@lrde.epita.fr>

	* Makefile.am: Added StrategoXT to the XTC_IMPORT.
	* configure.ac, src/Makefile: Update.
	* src/pp: New Directory.
	* src/pp/Makefile: New file.
	* src/pp/pp-cpp.str: New file. Pretty printer.
	* src/pp/unbox.str: New file. Tool for abox transformation.
	* src/pp/Cpp-pretty.pp: New file. Pretty print table.
parent 39a8a9d9
2003-04-10 Valentin David <david_v@lrde.epita.fr>
* Makefile.am: Added StrategoXT to the XTC_IMPORT.
* configure.ac, src/Makefile: Update.
* src/pp: New Directory.
* src/pp/Makefile: New file.
* src/pp/pp-cpp.str: New file. Pretty printer.
* src/pp/unbox.str: New file. Tool for abox transformation.
* src/pp/Cpp-pretty.pp: New file. Pretty print table.
2003-03-28 Clement Vasseur <vasseu_c@lrde.epita.fr>
* configure.ac: Expect automake 1.7.3.
......
SUBDIRS = config src lib test
EXTRA_DIST = stdconfig bootstrap Makefile.xt
include Makefile.xt
XTC_IMPORT = $(STRATEGOXT)/share/StrategoXT/XTC
......@@ -57,5 +57,6 @@ AC_CONFIG_FILES([Makefile
src/signature/Makefile
src/det-to-cpp/Makefile
src/cpp-to-det/Makefile
src/pp/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 102)
(Parent-Version meta-c++-grammar 0 101)
(Version-Log "2003-03-28 Clement Vasseur <vasseu_c@lrde.epita.fr>
(Project-Version meta-c++-grammar 0 103)
(Parent-Version meta-c++-grammar 0 102)
(Version-Log "2003-04-10 Valentin David <david_v@lrde.epita.fr>
* configure.ac: Expect automake 1.7.3.
* config/sdf-check.in: Remove stderr redirection to /dev/null when
parsing test files.
* lib/sdf.cons.tbl, lib/stratego.pp, lib/stratego.pp.af: Remove.
* lib/Makefile.am: Remove `sdf.cons.tbl', `stratego.pp', and
`stratego.pp.af' from EXTRA_DIST.
* src/attribute/Makefile.am, src/det-to-cpp/Makefile.am,
* src/cpp-to-det/Makefile.am: Use STRINCLUDES for `sc' includes. Don't
use wildcards in EXTRA_DIST and CLEANFILES.
* Makefile.am: Added StrategoXT to the XTC_IMPORT.
* configure.ac, src/Makefile: Update.
* src/pp: New Directory.
* src/pp/Makefile: New file.
* src/pp/pp-cpp.str: New file. Pretty printer.
* src/pp/unbox.str: New file. Tool for abox transformation.
* src/pp/Cpp-pretty.pp: New file. Pretty print table.
")
(New-Version-Log "")
(Checkin-Time "Fri, 28 Mar 2003 18:16:30 +0100")
(Checkin-Login vasseu_c)
(Checkin-Time "Thu, 10 Apr 2003 18:40:23 +0200")
(Checkin-Login david_v)
(Populate-Ignore
(
;; Temporary files.
......@@ -89,8 +86,8 @@
)
(Project-Keywords)
(Files
(ChangeLog (meta-c++-grammar/0_ChangeLog 1.98 640))
(Makefile.am (meta-c++-grammar/f/34_Makefile.a 1.3 640))
(ChangeLog (meta-c++-grammar/0_ChangeLog 1.99 640))
(Makefile.am (meta-c++-grammar/f/34_Makefile.a 1.4 640))
(TODO (meta-c++-grammar/f/27_TODO 1.2 640))
(README (meta-c++-grammar/g/37_README 1.2 644))
......@@ -98,7 +95,7 @@
(config/ccview.sh (meta-c++-grammar/f/36_ccview.sh 1.1 750))
(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.5 640))
(configure.ac (meta-c++-grammar/f/44_configure. 1.15 640))
(configure.ac (meta-c++-grammar/f/44_configure. 1.16 640))
(lib/Layout.sdf (meta-c++-grammar/4_Layout.sdf 1.3 640))
(lib/Makefile.am (meta-c++-grammar/f/49_Makefile.a 1.4 640))
......@@ -111,7 +108,7 @@
(prj (meta-c++-grammar.prj) :symlink)
(src/Makefile.am (meta-c++-grammar/f/46_Makefile.a 1.9 640))
(src/Makefile.am (meta-c++-grammar/f/46_Makefile.a 1.10 640))
(src/attribute/Makefile.am (meta-c++-grammar/g/31_Makefile.a 1.4 640))
(src/attribute/asfix-attribute.str (meta-c++-grammar/g/32_Main.r 1.2 640))
......@@ -434,6 +431,14 @@
(stdconfig (meta-c++-grammar/g/44_stdconfig 1.1 755))
(bootstrap (meta-c++-grammar/g/45_bootstrap 1.1 755))
;; Files added by populate at Thu, 10 Apr 2003 18:38:51 +0200,
;; to version 0.102(w), by david_v:
(src/pp/unbox.str (meta-c++-grammar/g/46_unbox.str 1.1 644))
(src/pp/pp-cpp.str (meta-c++-grammar/g/47_pp-cpp.str 1.1 644))
(src/pp/Makefile.am (meta-c++-grammar/g/48_Makefile.a 1.1 644))
(src/pp/Cpp-pretty.pp (meta-c++-grammar/g/49_Cpp-pretty 1.1 600))
)
(Merge-Parents)
(New-Merge-Parents)
SUBDIRS = grammar deterministic signature attribute det-to-cpp cpp-to-det
SUBDIRS = grammar deterministic signature attribute det-to-cpp cpp-to-det \
pp
include $(top_srcdir)/Makefile.xt
This diff is collapsed.
include $(top_srcdir)/Makefile.xt
bin_PROGRAMS = pp-cpp
SCFLAGS = --main $*
STRINCLUDES = -I $(XTC)/share/xtc -I $(GPP)/share/gpp
pkgdata_DATA = Cpp-pretty.pp.af
EXTRA_DIST = Cpp-pretty.pp pp-cpp.str unbox.str
CLEANFILES = Cpp-pretty.pp.af
#pp-cpp: unbox.str
module pp-cpp
imports xtc-lib stratego-xt-xtc-tools unbox
strategies
pp-cpp = xtc-io-wrap(
xtc-transform(!"ast2abox",
!["-p", <xtc-find> "Cpp-pretty.pp.af"])
; xtc-abox-format
; unbox
; xtc-abox2text
)
module unbox
imports lib Box
rules
EmptyBox : a@H(_, []) -> a
EmptyBox : a@V(_, []) -> a
EmptyBox : a@HV(_, []) -> a
EmptyBox : [] -> []
CutBox : [x] -> []
where <EmptyBox> x
CutBox : [x] -> [x]
where <not(EmptyBox)> x
CutBox : [x|xs] -> xs'
where <EmptyBox> x
; <CutBox> xs => xs'
CutBox : [x|xs] -> [x|xs']
where <not(EmptyBox)> x
; <CutBox> xs => xs'
strategies
unbox = bottomup(try(CutBox))
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