in reply to Re^2: Writing a Programming Language in Perl
in thread Writing a Programming Language in Perl
The grammar of a language defines its syntax. Parsers (e.g. Marpa) take a sequence of bytes, characters or tokens, check if it conforms to the grammar, and assigns meaning to the components of the sequence as per the grammar.
For example, the job of the parser is to receive "a+b*c" and return "a multiplication of ( an addition of ( identifier a ) and (identifier b ) ) and ( identifier c )".
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Writing a Programming Language in Perl
by programmer99 (Novice) on Oct 25, 2011 at 22:30 UTC | |
by ikegami (Patriarch) on Oct 25, 2011 at 22:32 UTC | |
by programmer99 (Novice) on Oct 25, 2011 at 22:56 UTC | |
by chromatic (Archbishop) on Oct 26, 2011 at 03:22 UTC | |
by programmer99 (Novice) on Oct 26, 2011 at 09:39 UTC |