Commit 8ef12342 authored by vasseu_c's avatar vasseu_c
Browse files

2003-06-03 Clement Vasseur <vasseu_c@lrde.epita.fr>

	* configure.ac: Add sdf/Makefile and strategocxx/Makefile
	* Makefile.am, src/Makefile.am: Add BOOTCLEAN_SUBDIRS
	* src/sdf/Makefile.am: New. Create a sdf-option'ed version of the
	grammar. We need this for concrete syntax implementation.

	* src/strategocxx/Makefile.am: New StrategoCxx grammar, for using Cxx
	syntax in Stratego code.
	* src/strategocxx/StrategoCxx.sdf: New. The StrategoCxx grammar.
	* src/strategocxx/CxxVariables.sdf: New. Declare StrategoCxx variables.
parent b23fbe06
2003-06-03 Clement Vasseur <vasseu_c@lrde.epita.fr>
* configure.ac: Add sdf/Makefile and strategocxx/Makefile
* Makefile.am, src/Makefile.am: Add BOOTCLEAN_SUBDIRS
* src/sdf/Makefile.am: New. Create a sdf-option'ed version of the
grammar. We need this for concrete syntax implementation.
* src/strategocxx/Makefile.am: New StrategoCxx grammar, for using Cxx
syntax in Stratego code.
* src/strategocxx/StrategoCxx.sdf: New. The StrategoCxx grammar.
* src/strategocxx/CxxVariables.sdf: New. Declare StrategoCxx variables.
2003-05-26 Clement Vasseur <vasseu_c@lrde.epita.fr>
* src/cxx-to-det/cxx-to-det.str, src/det-to-cxx/det-to-cxx.str:
......
include Makefile.xt
SUBDIRS = config src lib test
BOOTCLEAN_SUBDIRS = src
EXTRA_DIST = stdconfig bootstrap Makefile.xt
include Makefile.xt
......@@ -58,5 +58,7 @@ AC_CONFIG_FILES([Makefile
src/dxx-to-cxx/Makefile
src/cxx-to-dxx/Makefile
src/pp/Makefile
src/sdf/Makefile
src/strategocxx/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 108)
(Parent-Version meta-c++-grammar 0 107)
(Version-Log "2003-05-26 Clement Vasseur <vasseu_c@lrde.epita.fr>
(Project-Version meta-c++-grammar 0 109)
(Parent-Version meta-c++-grammar 0 108)
(Version-Log "2003-06-03 Clement Vasseur <vasseu_c@lrde.epita.fr>
* src/cxx-to-det/cxx-to-det.str, src/det-to-cxx/det-to-cxx.str:
Rename as...
* src/cxx-to-dxx/cxx-to-dxx.str, src/dxx-to-cxx/dxx-to-cxx.str:
...these.
* configure.ac: Add sdf/Makefile and strategocxx/Makefile
* Makefile.am, src/Makefile.am: Add BOOTCLEAN_SUBDIRS
* src/sdf/Makefile.am: New. Create a sdf-option'ed version of the
grammar. We need this for concrete syntax implementation.
* src/strategocxx/Makefile.am: New StrategoCxx grammar, for using Cxx
syntax in Stratego code.
* src/strategocxx/StrategoCxx.sdf: New. The StrategoCxx grammar.
* src/strategocxx/CxxVariables.sdf: New. Declare StrategoCxx variables.
* configure.ac, src/Makefile.am, src/deterministic/Dxx.sdf,
* src/deterministic/Makefile.am, src/signature/Makefile.am,
* src/dxx-to-cxx/Makefile.am, src/dxx-to-cxx/dxx-to-cxx.str,
* src/cxx-to-dxx/Makefile.am, src/cxx-to-dxx/cxx-to-dxx.str,
* src/pp/pp-cxx.str:
Rename cxx-det to dxx everywhere.
")
(New-Version-Log "")
(Checkin-Time "Mon, 26 May 2003 22:52:52 +0200")
(Checkin-Time "Tue, 03 Jun 2003 04:23:08 +0200")
(Checkin-Login vasseu_c)
(Populate-Ignore
(
......@@ -90,8 +89,8 @@
)
(Project-Keywords)
(Files
(ChangeLog (meta-c++-grammar/0_ChangeLog 1.104 600))
(Makefile.am (meta-c++-grammar/f/34_Makefile.a 1.6 600))
(ChangeLog (meta-c++-grammar/0_ChangeLog 1.105 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))
......@@ -99,7 +98,7 @@
(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.18 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))
......@@ -112,7 +111,7 @@
(prj (meta-c++-grammar.prj) :symlink)
(src/Makefile.am (meta-c++-grammar/f/46_Makefile.a 1.12 600))
(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))
......@@ -443,6 +442,14 @@
(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/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.1 644))
(src/strategocxx/StrategoCxx.sdf (meta-c++-grammar/h/0_StrategoCx 1.1 644))
(src/strategocxx/Makefile.am (meta-c++-grammar/h/1_Makefile.a 1.1 600))
)
(Merge-Parents)
(New-Merge-Parents)
SUBDIRS = grammar deterministic signature attribute dxx-to-cxx cxx-to-dxx pp
include $(top_srcdir)/Makefile.xt
SUBDIRS = grammar deterministic signature attribute dxx-to-cxx cxx-to-dxx \
pp sdf strategocxx
BOOTCLEAN_SUBDIRS = $(SUBDIRS)
include $(top_srcdir)/Makefile.xt
PGEN_FLAGS = -m $*
sdfdata_DATA = Cxx.def Cxx.tbl $(SDFS)
$(SDFS): $(top_srcdir)/src/grammar/Cxx.def
unpack-sdf $(top_srcdir)/src/grammar/Cxx.def
Cxx.def: $(top_srcdir)/src/grammar/Cxx.def
cp $(top_srcdir)/src/grammar/Cxx.def .
SDFS = \
AccessSpecifiers.sdf \
AdditiveExpressions.sdf \
AndExpressions.sdf \
AsmDefinitions.sdf \
AssignmentExpressions.sdf \
BaseSpecifiers.sdf \
BooleanLiterals.sdf \
CastExpressions.sdf \
CharacterLiterals.sdf \
Characters.sdf \
ClassSpecifiers.sdf \
CompoundStatements.sdf \
ConditionalExpressions.sdf \
ConstantExpressions.sdf \
ConversionFunctionIds.sdf \
Cxx.sdf \
CtorInitializers.sdf \
CvQualifiers.sdf \
DeclarationStatements.sdf \
Declarations.sdf \
Declarators.sdf \
DeleteExpressions.sdf \
ElaboratedTypeSpecifiers.sdf \
EnumSpecifiers.sdf \
EqualityExpressions.sdf \
EscapeSequences.sdf \
ExceptionSpecifications.sdf \
ExclusiveOrExpressions.sdf \
ExplicitInstantiations.sdf \
ExplicitSpecializations.sdf \
ExpressionStatements.sdf \
Expressions.sdf \
FloatingLiterals.sdf \
FunctionDefinitions.sdf \
FunctionSpecifiers.sdf \
IdExpressions.sdf \
Identifiers.sdf \
InclusiveOrExpressions.sdf \
InitDeclarators.sdf \
Initializers.sdf \
IntegerLiterals.sdf \
IterationStatements.sdf \
JumpStatements.sdf \
Keywords.sdf \
LabeledStatements.sdf \
LinkageSpecifications.sdf \
Literals.sdf \
LogicalAndExpressions.sdf \
LogicalOrExpressions.sdf \
MemberSpecifications.sdf \
MultiplicativeExpressions.sdf \
NamespaceAliases.sdf \
Namespaces.sdf \
NewExpressions.sdf \
OperatorFunctionIds.sdf \
ParameterDeclarations.sdf \
PmExpressions.sdf \
PostfixExpressions.sdf \
PrimaryExpressions.sdf \
RelationalExpressions.sdf \
SelectionStatements.sdf \
ShiftExpressions.sdf \
SimpleTypeSpecifiers.sdf \
Specifiers.sdf \
Statements.sdf \
StorageClassSpecifiers.sdf \
StringLiterals.sdf \
TemplateDeclarations.sdf \
TemplateIds.sdf \
TemplateParameters.sdf \
ThrowExpressions.sdf \
TranslationUnits.sdf \
TryBlocks.sdf \
TypeIds.sdf \
TypeSpecifiers.sdf \
UnaryExpressions.sdf \
UsingDeclarations.sdf \
UsingDirectives.sdf \
Dummy.sdf \
Layout.sdf
CLEANFILES = Cxx.def Cxx.tbl $(SDFS)
module CxxVariables
exports
variables
[xyz][0-9]*[\']* -> Identifier { prefer }
[ijk][0-9]*[\']* -> IntegerLiteral { prefer }
[rst][0-9]*[\']* -> StringLiteral { prefer }
[uvw][0-9]*[\']* -> FloatingLiteral { prefer }
[efg][0-9]*[\']* -> AdditiveExpression { prefer }
[efg][0-9]*[\']* -> AssignmentExpression { prefer }
[efg][0-9]*[\']* -> EqualityExpression { prefer }
[efg][0-9]*[\']* -> Exp { prefer }
[efg][0-9]*[\']* -> Expression { prefer }
[efg][0-9]*[\']* -> MultiplicativeExpression { prefer }
[efg][0-9]*[\']* -> PmExpression { prefer }
[efg][0-9]*[\']* -> RelationalExpression { prefer }
[efg][0-9]*[\']* -> ShiftExpression { prefer }
[stu][0-9]*[\']* -> Statement { prefer }
"l"[0-9]*[\']* -> LValue { prefer }
"l"[0-9]*[\']* -> LogicalOrExpression { prefer }
"l"[0-9]*[\']* -> PostfixExpression { prefer }
"a"[0-9]*[\']*"*" -> { AssignmentExpression "," }+ { prefer }
"a"[0-9]*[\']*"*" -> { Exp "," }* { prefer }
"e"[0-9]*[\']*"*" -> { Exp ";" }* { prefer }
"i"[0-9]*[\']*"*" -> { InitField "," }* { prefer }
"i"[0-9]*[\']*"*" -> { MemInitializer "," }+ { prefer }
"p"[0-9]*[\']*"*" -> { FArg "," }* { prefer }
"p"[0-9]*[\']*"*" -> { ParameterDeclaration "," }+ { prefer }
"d"[0-9]*[\']*"*" -> Dec* { prefer }
"d"[0-9]*[\']*"*" -> Declaration+ { prefer }
"s"[0-9]*[\']*"*" -> Statement+ { prefer }
"m"[0-9]*[\']* -> MemberSpecification { prefer }
include $(top_srcdir)/Makefile.xt
PGEN_FLAGS = -m $*
SDFINCLUDES = -I $(STRATEGO_FRONT)/share/xt-strategoxt/sdf/stratego-front \
-I $(top_srcdir)/src/deterministic \
-I $(top_srcdir)/src/sdf \
-I $(top_srcdir)/lib
sdfdata_DATA = StrategoCxx.sdf CxxVariables.sdf
pkgdata_DATA = StrategoCxx.tbl
StrategoCxx.sdf: $(top_srcdir)/src/grammar/Cxx.sdf $(top_srcdir)/src/deterministic/Dxx.sdf
StrategoCxx.def: CxxVariables.sdf
EXTRA_DIST = StrategoCxx.sdf \
CxxVariables.sdf
CLEANFILES = StrategoCxx.def \
StrategoCxx.tbl
module StrategoCxx
imports
Dxx
StrategoRenamed
CxxVariables
exports
context-free syntax
"|[" Declaration "]c++|" -> StrategoTerm { cons ("ToTerm"), prefer }
"|[" DeclarationSeq "]c++|" -> StrategoTerm { cons ("ToTerm"), prefer }
"|[" PostfixExpression "]c++|" -> StrategoTerm { cons ("ToTerm"), prefer }
"|[" PrimaryExpression "]c++|" -> StrategoTerm { cons ("ToTerm"), prefer }
"|[" Statement "]c++|" -> StrategoTerm { cons ("ToTerm"), prefer }
"|*[" MultiplicativeExpression "]c++|" -> StrategoTerm { cons ("ToTerm"), prefer }
"|+[" AdditiveExpression "]c++|" -> StrategoTerm { cons ("ToTerm"), prefer }
"|<[" RelationalExpression "]c++|" -> StrategoTerm { cons ("ToTerm"), prefer }
"|==[" EqualityExpression "]c++|" -> StrategoTerm { cons ("ToTerm"), prefer }
"|=[" AssignmentExpression "]c++|" -> StrategoTerm { cons ("ToTerm"), prefer }
"|e[" Expression "]c++|" -> StrategoTerm { cons ("ToTerm"), prefer }
"|p[" PostfixExpression "]c++|" -> StrategoTerm { cons ("ToTerm"), prefer }
"|s[" Statement "]c++|" -> StrategoTerm { cons ("ToTerm"), prefer }
"|m[" MemberSpecification "]c++|" -> StrategoTerm { cons ("ToTerm"), prefer }
"|p[" ParameterDeclaration "]c++|" -> StrategoTerm { cons ("ToTerm"), prefer }
"|i[" MemInitializer "]c++|" -> StrategoTerm { cons ("ToTerm"), prefer }
context-free syntax
"~" StrategoTerm -> Expression { cons ("FromTerm"), prefer }
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