Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

建议的语言描述 language 属性 #20

Open
zhblue opened this issue Sep 22, 2020 · 13 comments
Open

建议的语言描述 language 属性 #20

zhblue opened this issue Sep 22, 2020 · 13 comments

Comments

@zhblue
Copy link
Owner

zhblue commented Sep 22, 2020

C
C++
Pascal
Java
Python
C#
Obj-C
Clang
Clang++
JavaScript
Go
Matlab(Octave)
@undefined-moe
Copy link

个人建议直接使用文件扩展名,编译器的区别使用 cpp/clang py/pypy2 此类方式区分;

@zhblue
Copy link
Owner Author

zhblue commented Sep 25, 2020

可以,等有空我修改一下hustoj的实现,让新旧两种都能兼容。

@zhblue
Copy link
Owner Author

zhblue commented Sep 26, 2020

$language_ext=Array( "c", "cc", "pas", "java", "rb", "sh", "py", "php","pl", "cs","m","bas","scm","c","cc","lua","js","go","sql","f95","m" );

@zhblue
Copy link
Owner Author

zhblue commented Sep 26, 2020

发现 Objective-C和Mathlab都是.m结尾,且不兼容,这个容易混淆,还是先保留

$language_name=Array("C","C++","Pascal","Java","Ruby","Bash","Python","PHP","Perl","C#","Obj-C","FreeBasic","Scheme","Clang","Clang++","Lua","JavaScript","Go","SQL(sqlite3)","Fortran","Matlab(Octave)","Other Language");

这个列表

@zhblue
Copy link
Owner Author

zhblue commented Sep 26, 2020

让OJ自行判断应该用什么文件扩展名

@undefined-moe
Copy link

objc可以使用mm

@undefined-moe
Copy link

个人来说不赞成使用过多特殊字符

@zhblue
Copy link
Owner Author

zhblue commented Sep 26, 2020

可以去把那些括号里的去掉,反正也没有人用这些语言答题

@undefined-moe
Copy link

照顾用户需求吧(
还有rs hs asm ts bf啥的

@undefined-moe
Copy link

javascript是用nodejs还是jsc也应该区分一下(?

@zhblue
Copy link
Owner Author

zhblue commented Sep 26, 2020

先不写死,等真的有人跳脚再说,不为不存在的用户做开发。

@undefined-moe
Copy link

也行,能否留个联系方式(issues通讯延迟太高了

@zhblue
Copy link
Owner Author

zhblue commented Sep 26, 2020

10982766@qq.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants