A programming language that compiles into JavaScript, offering more concise and readable syntax while maintaining full JavaScript compatibility.
77
{
"context": "This evaluation criteria assesses how well the engineer uses CoffeeScript's comment preservation capabilities during compilation. The focus is on proper usage of CoffeeScript's API to extract and preserve comments from source code.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses tokens method",
"description": "Uses CoffeeScript.tokens() to obtain the token stream from the source code, which contains comment information",
"max_score": 30
},
{
"name": "Accesses comment tokens",
"description": "Correctly accesses and filters comment tokens from the token stream (tokens with 'COMMENT' or 'HERECOMMENT' tags)",
"max_score": 25
},
{
"name": "Extracts comment type",
"description": "Correctly identifies and categorizes comment types as 'line' (from '#' comments) or 'block' (from '###' comments) based on token tags",
"max_score": 15
},
{
"name": "Extracts comment text",
"description": "Correctly extracts the comment text content from token values, removing comment markers (# and ###)",
"max_score": 10
},
{
"name": "Extracts line numbers",
"description": "Uses token locationData to extract accurate line numbers for each comment",
"max_score": 10
},
{
"name": "Uses compile method",
"description": "Uses CoffeeScript.compile() to generate the JavaScript output from the source code",
"max_score": 10
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-coffeescriptevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10