AtCoder Submission Language Detector (beta)

Automatically detects the language used based on the information in the source code comments and selects it as the one to be submitted.

ของเมื่อวันที่ 26-07-2022 ดู เวอร์ชันล่าสุด

ผู้เขียน
uni-kakurenbo
คะแนน
0 0 0
เวอร์ชัน
1.0.0
สร้างเมื่อ
26-07-2022
อัปเดตเมื่อ
26-07-2022
Size
2.46 กิโลไบต์
สัญญาอนุญาต
MIT
ปรับใช้กับ

ソースコード中のコメントに記述された情報に基づいて,使用されている言語を検知し,選択します。

言語情報の記述方法として,たとえば次のようなものが許容されます。

#language [XXX]
#language [XXX] [YYY] [ZZZ]
# language [XXX]
#language: [XXX]
#lang [XXX]
#meta language [XXX]
# meta language [XXX]
// # language [XXX]
/* # language [XXX] */
# language [XXX] #

厳密には,(デフォルトでは)次の正規表現を満たすものが該当します。
/#.*lang(?:uage)?:?\s+.+/