What programming languages ​​have regular grammar?

I am curious what languages ​​(if any) in the real world have the correct grammar (i.e., a lot of all syntactically correct programs are regular).

See also this question: Which programming languages ​​are context free? .

+5
source share
1 answer

Brainfuck and Whitespace and analogies are certainly correct.

On the other hand, any language that supports (parens) is not regular, since an automaton that recognizes it needs a stack. And I really don’t know many languages ​​without support () {} [], which will do something more than build.

The only real example that comes to mind and is probably regular, Forth .

+6
source

All Articles