Advertisement
wavec022

context free grammars

Sep 10th, 2020 (edited)
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. Context-Free Grammars
  2.  
  3. A = cat|B
  4. B = dog|AA
  5.  
  6. put "variable" definition in brackets and you can use a recursive def-- not possible in regex only in context free grammar
  7.  
  8. <braces> = {} | { <braces> }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement