summaryrefslogtreecommitdiff
path: root/test/langtrans_csharp.txl
diff options
context:
space:
mode:
Diffstat (limited to 'test/langtrans_csharp.txl')
-rw-r--r--test/langtrans_csharp.txl18
1 files changed, 17 insertions, 1 deletions
diff --git a/test/langtrans_csharp.txl b/test/langtrans_csharp.txl
index cf4a2c1..a8c6003 100644
--- a/test/langtrans_csharp.txl
+++ b/test/langtrans_csharp.txl
@@ -125,11 +125,27 @@ function alStmtToCSharp1 AlStmt [action_lang_stmt]
Result
end function
-function alTermToCSharp
+rule alTermToCSharp1
replace [al_term]
'first_token_char
by
'data '[ts]
+end rule
+
+rule alTermToCSharp2
+ replace [al_term]
+ '< _ [al_type_decl] '> '( AlExpr [al_expr] ')
+ by
+ '( AlExpr ')
+end rule
+
+function alTermToCSharp
+ replace [al_term]
+ AlTerm [al_term]
+ by
+ AlTerm
+ [alTermToCSharp1]
+ [alTermToCSharp2]
end function
function alExprExtendToCSharp AlExprExtend [repeat al_expr_extend]