开发者

Help with context-free grammar of lots of literal text with some special syntax

开发者 https://www.devze.com 2023-01-21 07:12 出处:网络
How do you make a context free grammar that analyzes mostly literal text (spaces, characters, symbols, etc.) while also looking for expressions of the form ${...} or $someComma开发者_Python百科nd{...}

How do you make a context free grammar that analyzes mostly literal text (spaces, characters, symbols, etc.) while also looking for expressions of the form ${...} or $someComma开发者_Python百科nd{...}? Note if it finds "I got $10 today", it should not do anything special with it.

Is it possible?


Yes, it is possible.

Since this is the right answer, I believe you will accept it.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号