File:  [parser3project] / parser3 / tests / 322.html
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Mon Oct 26 13:46:41 2015 UTC (10 years, 7 months ago) by moko
Branches: MAIN
CVS tags: release_3_5_1, release_3_5_0, release_3_4_6, release_3_4_5, release_3_4_4, HEAD
arguments reorder (related to issue #1041)

@main[]
^is_code{1}
^is_method{1}
^is_junction{1}

^is_code[$main]
^is_method[$main]
^is_junction[$main]

void: ^if(^reflection:is[no-such-value;void]){yes}{no}
string: $s[] ^if(^reflection:is[s;string]){yes}{no}

$a[ $.b[ $.c{code} ] ]
context: ^if(^reflection:is[c;code;$a.b]){yes}{no}

@is_code[x]
code: ^if(^reflection:is[x;code]){yes}{no}

@is_method[x]
method: ^if(^reflection:is[x;method]){yes}{no}

@is_junction[x]
juction: ^if(^reflection:is[x;junction]){yes}{no}

E-mail: