Hash :
475a5903
Author :
Date :
2020-05-18T14:01:07
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
proc groovy classpath=cp;
/* Testing a comment */
submit parseonly;
class Speaker {
def say( word ) {
println "----> \"${word}\""
}
}
endsubmit;
quit;
proc groovy classpath=cp;
eval "s = new Speaker(); s.say( ""Hi"" )";
quit;
----------------------------------------------------
[
["step", "proc groovy"],
["proc-args",
[
["arg", "classpath"],
["operator", "="],
["arg-value", "cp"],
["punctuation", ";"]
]
],
[
"proc-groovy", [
["comment", "/* Testing a comment */"],
["submit-statement", "submit parseonly"],
[
"groovy", [
["punctuation", ";"],
["keyword", "class"],
["class-name", ["Speaker"]],
["punctuation", "{"],
["keyword", "def"],
["function", "say"],
["punctuation", "("],
" word ",
["punctuation", ")"],
["punctuation", "{"],
"\r\n println ",
["string", "\"----> \\\"${word}\\\"\""],
["punctuation", "}"],
["punctuation", "}"]
]
],
["submit-statement", "endsubmit"],
["punctuation", ";"]
]
],
["step", "quit"],
["punctuation", ";"],
["step", "proc groovy"],
["proc-args",
[
["arg", "classpath"],
["operator", "="],
["arg-value", "cp"],
["punctuation", ";"]
]
],
["proc-groovy",[
["keyword", "eval"],
["string", "\"s = new Speaker(); s.say( \"\"Hi\"\" )\""],
["punctuation", ";"]
]
],
["step", "quit"],
["punctuation", ";"]
]
----------------------------------------------------
Checks for proc groovy support.