FSMs vs Grammars ================= In case you are wondering: *“Are FSMs and Grammars related, or the same?”* The are related, but not equal. As discovered by `Chomsky `__ there is a `hierarchy `__ of languages (or actually grammars). As Chomsky was studying all kind of languages, include natural “human” language, his perception differs from our interpretation. |BR| When we (SW/Engineers) speak about grammars, we typically refer to “Context free grammars” (`CFG `__) -- Chomsky classify them as “Type-2”. A non-deterministic PushDown machine (`PDA `__) is needed to recognise a “Type-2” (CFG) Grammar. (Which is a simple version of a stack-machine, which is lot more restricted then a Turing Machine). |BR| And as a FSM is one of the most restricted machines that exist --it can recognise only “Type-3” `Regular grammar `__-- a FSM can’t be used to recognise a (CFG) grammar. .. seealso:: .. postlist:: :category: Castle :tags: FSM .. postlist:: :category: Castle :tags: Grammar