summaryrefslogtreecommitdiff
path: root/test/langtrans_csharp.txl
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2015-09-08 19:35:02 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2015-12-04 13:41:28 +0900
commite18d79d3062a776f5898ab3f83fd4ec0d1abb105 (patch)
tree709cf04a097c05823e6610e735c742641d384e4d /test/langtrans_csharp.txl
parent17ed260cfad50c82495daeca85d52bbb243cd2a2 (diff)
downloadragel-accepted/tizen/wearable/20151223.105009.tar.gz
ragel-accepted/tizen/wearable/20151223.105009.tar.bz2
ragel-accepted/tizen/wearable/20151223.105009.zip
Change-Id: Ic8161a63cda6242edf910c9808e0fd5a8953cb27 Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
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]