Small example: reflexion mapping
Last week:software reflexion models
A key is the mapping from source code to high-level model
We defined a little language for this
- Used logical and physical structure in the source code
- Used regular expressions
[file=scanner.* mapTo=Parse] [file=buf\.[ch] mapTo=Parse] [class=Parser mapTo=Parse][class=Ast mapTo=AST][class=AssignStmt mapTo=AST] [class=BinOp mapTo=AST][class=Block mapTo=AST][directory=401 class=CallStmt mapTo=AST]
Actually, a family of DSLs; each defines the structures for the given source code system