Purchase Solution

Scanner classification of symbols enclosing the comment

Not what you're looking for?

Ask Custom Question

In some programming languages a comment can be enclosed either in braces {} or in the symbols (* *). How do you think a scanner would group the four symbols {, }, (*, *) for purposes of classification i.e. would each symbol be given its own classification number or would some share classifications?

Purchase this Solution

Solution Summary

Solution justifies the answer with the help of relevent examples/case analysis.

Solution Preview

Each of the mentioned symbols should be given it's own classification number. The way left parenthesis has to match right parenthesis, similarly start of comment has to match the end of comment. If symbols indicating start and end of comment are given same classification, then we won't be able to identify a comment correctly.

If we gave same ...

Purchase this Solution


Free BrainMass Quizzes
Javscript Basics

Quiz on basics of javascript programming language.

Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.

Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.

Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.