diff options
Diffstat (limited to 'tests/lexers/x10/example.txt')
| -rw-r--r-- | tests/lexers/x10/example.txt | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/tests/lexers/x10/example.txt b/tests/lexers/x10/example.txt new file mode 100644 index 00000000..7e258e96 --- /dev/null +++ b/tests/lexers/x10/example.txt @@ -0,0 +1,94 @@ +---input--- +/** Example file for the X10 programming langauge (http://x10-lang.org). + */ +class Example { + + public static def main(Rail[String]) { + Console.OUT.println("Hello World!"); // say hello. + } + +} + +---tokens--- +'/** Example file for the X10 programming langauge (http://x10-lang.org).\n */' Comment.Multiline +'\n' Text + +'class' Keyword +' ' Text +'E' Text +'x' Text +'a' Text +'m' Text +'p' Text +'l' Text +'e' Text +' ' Text +'{' Text +'\n' Text + +'\n' Text + +' ' Text +'public' Keyword.Declaration +' ' Text +'static' Keyword.Declaration +' ' Text +'def' Keyword +' ' Text +'m' Text +'a' Text +'i' Text +'n' Text +'(' Text +'R' Text +'a' Text +'i' Text +'l' Text +'[' Text +'S' Text +'t' Text +'r' Text +'i' Text +'n' Text +'g' Text +']' Text +')' Text +' ' Text +'{' Text +'\n' Text + +'\t' Text +'C' Text +'o' Text +'n' Text +'s' Text +'o' Text +'l' Text +'e' Text +'.' Text +'O' Text +'U' Text +'T' Text +'.' Text +'p' Text +'r' Text +'i' Text +'n' Text +'t' Text +'l' Text +'n' Text +'(' Text +'"Hello World!"' Literal.String +')' Text +';' Text +' ' Text +'// say hello.\n' Comment.Single + +' ' Text +'}' Text +'\n' Text + +'\n' Text + +'}' Text +'\n' Text |
