Commit 8404d189 authored by vasseu_c's avatar vasseu_c
Browse files

from Clement Vasseur <vasseu_c@lrde.epita.fr>

        * README, Makefile.am, configure.ac, bootstrap, src/pp/Makefile.am,
        * src/dxx-to-cxx/Makefile.am, src/cxx-to-dxx/Makefile.am,
        * src/strategocxx/Makefile.am:
        Cleanup.
        * src/attribute/Makefile.am, src/attribute/asfix-attribute.str:
        Use AsFix syntax from asfix-tools instead of keeping it in the `lib'
        directory.
        * src/grammar/Makefile.am, src/deterministic/Makefile.am:
        Use `pp-sdf' instead of `pp'.
        * src/signature/Makefile.am: Generate rtrees for distribution.
        * lib/Layout.sdf: Move to...
        * src/grammar/Layout.sdf: this.
parent 6f707a79
2003-06-13 Clement Vasseur <vasseu_c@lrde.epita.fr>
* README, Makefile.am, configure.ac, bootstrap, src/pp/Makefile.am,
* src/dxx-to-cxx/Makefile.am, src/cxx-to-dxx/Makefile.am,
* src/strategocxx/Makefile.am:
Cleanup.
* src/attribute/Makefile.am, src/attribute/asfix-attribute.str:
Use AsFix syntax from asfix-tools instead of keeping it in the `lib'
directory.
* src/grammar/Makefile.am, src/deterministic/Makefile.am:
Use `pp-sdf' instead of `pp'.
* src/signature/Makefile.am: Generate rtrees for distribution.
* lib/Layout.sdf: Move to...
* src/grammar/Layout.sdf: this.
2003-06-12 Clement Vasseur <vasseu_c@lrde.epita.fr>
* src/strategocxx/CxxVariables.sdf: Remove colliding variables, add
......
include Makefile.xt
include $(top_srcdir)/Makefile.xt
SUBDIRS = config src lib test
SUBDIRS = config src test
BOOTCLEAN_SUBDIRS = src
EXTRA_DIST = stdconfig bootstrap Makefile.xt
DIST_SUBDIRS = $(SUBDIRS)
EXTRA_DIST = bootstrap Makefile.xt
In addition to XT, this package requires sdf-option, part of the
meta-sdf-option PRCS project.
cxx-grammar
-----------
C++ syntax definition.
Authors: Robert Anisko <robert@lrde.epita.fr>
Valentin David <valentin.david@lrde.epita.fr>
Clment Vasseur <clement.vasseur@lrde.epita.fr>
Requirements
------------
StrategoXT 0.9.1 or above (http://www.stratego-language.org/)
sdf-option 0.1 or above (http://lrde.epita.fr/)
Installation
------------
$ ./configure --with-xt=<PATH> --with-transformers=<PATH>
$ make
$ make install
* add XT applet tarball elements :
- auto{conf, make} DONE
- integrated test suite DONE
- command line options (iowrap) DONE
* Make a better test-suite (-> Tiger ?)
* Have a decent naming scheme for prefixes (Cxx, Cpp) and producted files.
#!/bin/sh
# Note that this in sequence of calls to autotools, the
# autoxt tool is used to initialize automake support for
# StrategoXT tools.
rm -f config.cache config.log acconfig.h aclocal.m4
rm -f config.cache
rm -f acconfig.h
autoxt
aclocal -I .
autoconf
#acconfig
#autoheader
automake -a
autoconf -f
automake -a -c -f
......@@ -49,7 +49,6 @@ AC_SUBST(COMPILER_SYNTAX_CHECK)
# Output Files
AC_CONFIG_FILES([Makefile
lib/Makefile
src/Makefile
src/grammar/Makefile
src/deterministic/Makefile
......
EXTRA_DIST = \
Layout.sdf \
asfix \
prelude
include $(top_srcdir)/Makefile.xt
module AsFixAttributes
imports
AsFixTerms
signature
sorts
AsFixAttribute
constructors
attrs : List (AsFixAttribute) -> List (AsFixAttribute)
no-attrs : List (AsFixAttribute)
term : AsFixTerm -> AsFixAttribute
module AsFixProductions
imports
AsFixAttributes
AsFixSorts
signature
sorts
AsFixProduction
constructors
prod : List (AsFixSort) * AsFixSort * List (AsFixAttribute) -> AsFixProduction
module AsFixSorts
signature
sorts
AsFixSort
constructors
lit : String -> AsFixSort
sort : String -> AsFixSort
cf : AsFixSort -> AsFixSort
lex : AsFixSort -> AsFixSort
opt : AsFixSort -> AsFixSort
module AsFixTerms
imports
AsFixProductions
signature
sorts
AsFixTerm
constructors
appl : AsFixProduction * List (AsFixTerm) -> AsFixTerm
amb : List (AsFixTerm) -> AsFixTerm
cons : String -> AsFixTerm
module AsFixTrees
imports
AsFixTerms
signature
sorts
AsFixTree
constructors
parsetree : AsFixTerm * Int -> AsFixTree
module Booleans
signature
sorts
Bool
constructors
True : Bool
False : Bool
;; -*- Prcs -*-
(Created-By-Prcs-Version 1 3 2)
(Project-Description "Meta/SDF Grammar for C++")
(Project-Version meta-c++-grammar 0 110)
(Parent-Version meta-c++-grammar 0 109)
(Project-Version meta-c++-grammar 0 111)
(Parent-Version meta-c++-grammar 0 110)
(Version-Log "from Clement Vasseur <vasseu_c@lrde.epita.fr>
* src/strategocxx/CxxVariables.sdf: Remove colliding variables, add
some more variables.
* src/strategocxx/StrategoCxx.sdf: Handle both |[...]| and |[...]c++|
syntaxes.
* README, Makefile.am, configure.ac, bootstrap, src/pp/Makefile.am,
* src/dxx-to-cxx/Makefile.am, src/cxx-to-dxx/Makefile.am,
* src/strategocxx/Makefile.am:
Cleanup.
* src/attribute/Makefile.am, src/attribute/asfix-attribute.str:
Use AsFix syntax from asfix-tools instead of keeping it in the `lib'
directory.
* src/grammar/Makefile.am, src/deterministic/Makefile.am:
Use `pp-sdf' instead of `pp'.
* src/signature/Makefile.am: Generate rtrees for distribution.
* lib/Layout.sdf: Move to...
* src/grammar/Layout.sdf: this.
")
(New-Version-Log "")
(Checkin-Time "Thu, 12 Jun 2003 22:30:06 +0200")
(Checkin-Time "Fri, 13 Jun 2003 06:10:28 +0200")
(Checkin-Login vasseu_c)
(Populate-Ignore
(
......@@ -84,32 +92,19 @@
)
(Project-Keywords)
(Files
(ChangeLog (meta-c++-grammar/0_ChangeLog 1.106 600))
(Makefile.am (meta-c++-grammar/f/34_Makefile.a 1.7 600))
(TODO (meta-c++-grammar/f/27_TODO 1.2 600))
(README (meta-c++-grammar/g/37_README 1.2 600))
(ChangeLog (meta-c++-grammar/0_ChangeLog 1.107 600))
(Makefile.am (meta-c++-grammar/f/34_Makefile.a 1.8 600))
(README (meta-c++-grammar/g/37_README 1.3 600))
(config/Makefile.am (meta-c++-grammar/f/40_Makefile.a 1.2 600))
(config/ccview.sh (meta-c++-grammar/f/36_ccview.sh 1.1 700))
(config/disambiguate-check.in (meta-c++-grammar/f/38_disambigua 1.6 600))
(config/sdf-check.in (meta-c++-grammar/f/37_sdf-check. 1.5 600))
(configure.ac (meta-c++-grammar/f/44_configure. 1.19 600))
(lib/Layout.sdf (meta-c++-grammar/4_Layout.sdf 1.3 600))
(lib/Makefile.am (meta-c++-grammar/f/49_Makefile.a 1.4 600))
(lib/asfix/AsFixAttributes.str (meta-c++-grammar/f/0_AsFixAttri 1.1 600))
(lib/asfix/AsFixProductions.str (meta-c++-grammar/f/1_AsFixProdu 1.1 600))
(lib/asfix/AsFixSorts.str (meta-c++-grammar/f/2_AsFixSorts 1.1 600))
(lib/asfix/AsFixTerms.str (meta-c++-grammar/f/3_AsFixTerms 1.1 600))
(lib/asfix/AsFixTrees.str (meta-c++-grammar/f/4_AsFixTrees 1.1 600))
(lib/prelude/Booleans.str (meta-c++-grammar/f/5_Booleans.r 1.1 600))
(configure.ac (meta-c++-grammar/f/44_configure. 1.20 600))
(src/grammar/Layout.sdf (meta-c++-grammar/4_Layout.sdf 1.3 600))
(prj (meta-c++-grammar.prj) :symlink)
(src/Makefile.am (meta-c++-grammar/f/46_Makefile.a 1.13 600))
(src/attribute/Makefile.am (meta-c++-grammar/g/31_Makefile.a 1.4 600))
(src/attribute/asfix-attribute.str (meta-c++-grammar/g/32_Main.r 1.2 600))
(src/attribute/Makefile.am (meta-c++-grammar/g/31_Makefile.a 1.5 600))
(src/attribute/asfix-attribute.str (meta-c++-grammar/g/32_Main.r 1.3 600))
(src/grammar/AccessSpecifiers.sdf (meta-c++-grammar/5_AccessSpec 1.4 600))
(src/grammar/AdditiveExpressions.sdf (meta-c++-grammar/6_AdditiveEx 1.6 600))
(src/grammar/AndExpressions.sdf (meta-c++-grammar/7_AndExpress 1.5 600))
......@@ -159,7 +154,7 @@
(src/grammar/Literals.sdf (meta-c++-grammar/50_Literals.s 1.3 600))
(src/grammar/LogicalAndExpressions.sdf (meta-c++-grammar/51_LogicalAnd 1.4 600))
(src/grammar/LogicalOrExpressions.sdf (meta-c++-grammar/b/0_LogicalOrE 1.4 600))
(src/grammar/Makefile.am (meta-c++-grammar/f/47_Makefile.a 1.12 600))
(src/grammar/Makefile.am (meta-c++-grammar/f/47_Makefile.a 1.13 600))
(src/grammar/MemberSpecifications.sdf (meta-c++-grammar/b/1_MemberSpec 1.6 600))
(src/grammar/MultiplicativeExpressions.sdf (meta-c++-grammar/b/2_Multiplica 1.5 600))
(src/grammar/NamespaceAliases.sdf (meta-c++-grammar/b/3_NamespaceA 1.4 600))
......@@ -191,7 +186,7 @@
(src/grammar/UsingDirectives.sdf (meta-c++-grammar/b/29_UsingDirec 1.5 600))
(src/deterministic/Dxx.sdf (meta-c++-grammar/g/38_Cpp-det.sd 1.9 600))
(src/deterministic/Makefile.am (meta-c++-grammar/g/39_Makefile.a 1.5 600))
(src/deterministic/Makefile.am (meta-c++-grammar/g/39_Makefile.a 1.6 600))
(test/Makefile.am (meta-c++-grammar/f/45_Makefile.a 1.4 600))
(test/g++/abi/bitfield1.C (meta-c++-grammar/b/30_bitfield1. 1.1 600))
......@@ -418,33 +413,20 @@
(test/our/expressions/primary-lit-integer-17-fail.cc (meta-c++-grammar/e/44_primary-li 1.1 600))
(test/our/expressions/primary-par.cc (meta-c++-grammar/e/45_primary-pa 1.1 600))
(test/our/expressions/primary-this.cc (meta-c++-grammar/e/46_primary-th 1.1 600))
(src/signature/Makefile.am (meta-c++-grammar/g/33_Makefile.a 1.6 600))
(src/dxx-to-cxx/Makefile.am (meta-c++-grammar/g/40_Makefile.a 1.5 600))
(src/signature/Makefile.am (meta-c++-grammar/g/33_Makefile.a 1.7 600))
(src/dxx-to-cxx/Makefile.am (meta-c++-grammar/g/40_Makefile.a 1.6 600))
(src/dxx-to-cxx/dxx-to-cxx.str (meta-c++-grammar/g/41_Main.r 1.6 600))
(src/cxx-to-dxx/Makefile.am (meta-c++-grammar/g/42_Makefile.a 1.5 600))
(src/cxx-to-dxx/Makefile.am (meta-c++-grammar/g/42_Makefile.a 1.6 600))
(src/cxx-to-dxx/cxx-to-dxx.str (meta-c++-grammar/g/43_Main.r 1.6 600))
(stdconfig (meta-c++-grammar/g/44_stdconfig 1.3 700))
(bootstrap (meta-c++-grammar/g/45_bootstrap 1.1 700))
;; Files added by populate at Thu, 10 Apr 2003 18:38:51 +0200,
;; to version 0.102(w), by david_v:
(bootstrap (meta-c++-grammar/g/45_bootstrap 1.2 700))
(src/pp/unbox.str (meta-c++-grammar/g/46_unbox.str 1.1 600))
(src/pp/pp-cxx.str (meta-c++-grammar/g/47_pp-cpp.str 1.3 600))
(src/pp/Makefile.am (meta-c++-grammar/g/48_Makefile.a 1.4 600))
(src/pp/Makefile.am (meta-c++-grammar/g/48_Makefile.a 1.5 600))
(src/pp/Cxx-pretty.pp (meta-c++-grammar/g/49_Cpp-pretty 1.1 600))
;; Files added by populate at Tue, 03 Jun 2003 04:14:30 +0200,
;; to version 0.108(w), by vasseu_c:
(src/sdf/Makefile.am (meta-c++-grammar/g/50_Makefile.a 1.1 600))
(src/strategocxx/CxxVariables.sdf (meta-c++-grammar/g/51_CxxVariabl 1.2 644))
(src/strategocxx/StrategoCxx.sdf (meta-c++-grammar/h/0_StrategoCx 1.2 644))
(src/strategocxx/Makefile.am (meta-c++-grammar/h/1_Makefile.a 1.1 600))
(src/strategocxx/Makefile.am (meta-c++-grammar/h/1_Makefile.a 1.2 600))
)
(Merge-Parents)
(New-Merge-Parents)
include $(top_srcdir)/Makefile.xt
-include asfix-attribute.c.dep
SCFLAGS = --main $* --verbose 0 $(XTCFLAGS)
STRINCLUDES = -I $(top_srcdir)/lib/prelude \
-I $(top_srcdir)/lib/asfix
SCFLAGS = --main $* --verbose 0
STRINCLUDES = -I $(ASFIX_TOOLS)/share/asfix-tools
bin_PROGRAMS = asfix-attribute
asfix-attribute.o: xtc-conf.h
BOOTCLEANFILES = asfix-attribute.c
EXTRA_DIST = asfix-attribute.str
CLEANFILES = *.dep *.atree *.mtree *.txt *.af *.afexp *.aexp *.abox
CLEANFILES = asfix-attribute.c.dep
......@@ -6,7 +6,7 @@ imports
imports
AsFixTrees
asfix
rules
......
include $(top_srcdir)/Makefile.xt
-include cxx-to-dxx.c.dep
SCFLAGS = --main $* --verbose 0 $(XTCFLAGS)
STRINCLUDES = -I $(top_srcdir)/lib/prelude \
-I $(top_srcdir)/src/signature
SCFLAGS = --main $* --verbose 0
STRINCLUDES = -I $(top_srcdir)/src/signature
bin_PROGRAMS = cxx-to-dxx
cxx-to-dxx.o : xtc-conf.h
BOOTCLEANFILES = cxx-to-dxx.c
EXTRA_DIST = cxx-to-dxx.str
CLEANFILES = *.dep *.atree *.mtree *.txt *.af *.afexp *.aexp *.abox
CLEANFILES = cxx-to-dxx.c.dep
......@@ -18,6 +18,6 @@ Dxx.def: $(SDFS)
| $(SDF_OPTION) \
| $(SDF_TOOLS)/bin/sdf-cons \
| $(SDF_TOOLS)/bin/sdf-bracket \
| $(GPP)/bin/pp -a -l sdf -v 2.1 > $@
| $(SDF_FRONT)/bin/pp-sdf > $@
CLEANFILES = Dxx.def Dxx.tbl Dxx.pp
include $(top_srcdir)/Makefile.xt
-include dxx-to-cxx.c.dep
SCFLAGS = --main $* --verbose 0 $(XTCFLAGS)
STRINCLUDES = -I $(top_srcdir)/lib/prelude \
-I $(top_srcdir)/src/signature
SCFLAGS = --main $* --verbose 0
STRINCLUDES = -I $(top_srcdir)/src/signature
bin_PROGRAMS = dxx-to-cxx
dxx-to-cxx.o : xtc-conf.h
BOOTCLEANFILES = dxx-to-cxx.c
EXTRA_DIST = dxx-to-cxx.str
CLEANFILES = dxx-to-cxx.c.dep
CLEANFILES = *.dep *.atree *.mtree *.txt *.af *.afexp *.aexp *.abox
dxx-to-cxx.c: dxx-to-cxx.str $(top_srcdir)/src/signature/Dxx.str
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