in Compiler Design
4,230 views
1 vote
1 vote
Whether a given pattern constitutes a token or not
(a) depends on the source language
(b) depends on the target language
(c) depends on the compiler
(d) none of the above comment is true
in Compiler Design
4.2k views

4 Comments

I think it depends upon how the FA Automata is constructed for lexical phase of compiler to accept the pattern or not so it will be depending upon the compiler
0
0

as per my knowledge

given pattern constitutes a token or not

depends upon the source language.

if the pattern is in source language, then it should constitute a token, otherwise why that pattern exist?

Compiler ( Specific to a language ) should be implement all patterns ( in that source language )

1
1
It depends on the programmer - how he's defined the tokens.
0
0

@goxul

every token should have a pattern.

0
0

Please log in or register to answer this question.

Related questions