[英]How to remove 'k' option when converting ANTLR 3 grammar to ANTLR 4
[英]How do I remove the “unsupported option 'greedy'” warning in this ANTLR grammar?
我有C#的答案,
https://blog.lextudio.com/how-to-use-antlr-4-on-net-4361915b670f
您可以對其他語言應用相同的提示,
采用 *? 而不是*作為選項{greedy = false}消失了。
更新:ANTLR 4的官方文檔在這里 。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.