summaryrefslogtreecommitdiff
path: root/test/langtrans_c.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_c.txl
parent17ed260cfad50c82495daeca85d52bbb243cd2a2 (diff)
downloadragel-e18d79d3062a776f5898ab3f83fd4ec0d1abb105.tar.gz
ragel-e18d79d3062a776f5898ab3f83fd4ec0d1abb105.tar.bz2
ragel-e18d79d3062a776f5898ab3f83fd4ec0d1abb105.zip
Change-Id: Ic8161a63cda6242edf910c9808e0fd5a8953cb27 Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'test/langtrans_c.txl')
-rw-r--r--test/langtrans_c.txl18
1 files changed, 17 insertions, 1 deletions
diff --git a/test/langtrans_c.txl b/test/langtrans_c.txl
index e80e508..5a4971f 100644
--- a/test/langtrans_c.txl
+++ b/test/langtrans_c.txl
@@ -122,11 +122,27 @@ function alStmtToC1 AlStmt [action_lang_stmt]
Result
end function
-function alTermToC
+rule alTermToC1
replace [al_term]
'first_token_char
by
'ts '[0]
+end rule
+
+rule alTermToC2
+ replace [al_term]
+ '< _ [al_type_decl] '> '( AlExpr [al_expr] ')
+ by
+ '( AlExpr ')
+end rule
+
+function alTermToC
+ replace [al_term]
+ AlTerm [al_term]
+ by
+ AlTerm
+ [alTermToC1]
+ [alTermToC2]
end function
function alExprExtendToC AlExprExtend [repeat al_expr_extend]