Wenyan: 编译成 JS 或 Python 不用把标识符转为拼音

Created on 18 Dec 2019  ·  3Comments  ·  Source: wenyan-lang/wenyan

编译后可以继续用中文标识符。毕竟它们都支持中文命名
这样还可以避免标识符的拼音相重的问题。

parsecompiler

Most helpful comment

@jiangzoi, not exactly.

  1. I just fixed it and committed. Now all the original identifiers are used by default. (with an option to use unicode entry point or pinyin) 34119f806c2e62b9543d7e692bd3bd5e9b406edd
  2. Please refer to this earlier issue https://github.com/LingDong-/wenyan-lang/issues/6 for detailed discussion on this topic.

All 3 comments

這個建議不錯,會在之後版本中考慮。

@jiangzoi, not exactly.

  1. I just fixed it and committed. Now all the original identifiers are used by default. (with an option to use unicode entry point or pinyin) 34119f806c2e62b9543d7e692bd3bd5e9b406edd
  2. Please refer to this earlier issue https://github.com/LingDong-/wenyan-lang/issues/6 for detailed discussion on this topic.

You can specify the romanizeIdentifiers in https://github.com/wenyan-lang/wenyan/wiki/Compiler-API#compiler-options now!

Was this page helpful?
0 / 5 - 0 ratings