Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何创建一个上下文无关的语法,它主要分析文字文本(空格、字符、符号等),同时寻找 ${...} 或 $someCommand{...} 形式的表达式?请注意,如果它找到“我今天得到了 10 美元”,它不应该对它做任何特别的事情。
可能吗?
对的,这是可能的。
既然这是正确的答案,我相信你会接受的。