The first project involves modifying the attached lexical analyzer and the compilation listing generator code. You need to make the following modifications to the lexical analyzer, scanner.l:The projects for this course require a Linux environment that has the compiler tools flex and bison together with make and the GNU g++ compiler.The first project involves modifying the attached lexical analyzer and the compilation listing generator code. You need to make the following modifications to the lexical analyzer, scanner.l: 1. A new token ARROW should be added for the two character punctuation symbol =>. 2. The following reserved words should be added: case, else, endcase, endif, if, others, real, then, when Each reserved words should be a separate token. The token name should be the same as the lexeme, but in all upper case. 3. Two additional logical operators should be added. The lexeme for the first should be or and its token should be OROP. The second logical operator added should be not and its token should be NOTOP. 4. Five relational operators should be added. They are =, /=, >, >= and <=. All of the lexemes should be represented by the single token RELOP. 5. One additional lexeme should be added for the ADDOP token. It is binary -. 6. One additional lexeme should be added for the MULOP token. It is/. 7. A new token REMOP should be added for the remainder operator. Its lexeme should be rem. 8. A new token EXPOP should be added for the exponentiation operator. Its lexeme should be **. 9. A second type of comment should be added that begins with // and ends with the end of line. As with the existing comment, no token should be returned. 10. The definition for the identifiers should be modified so that underscores can be included, however, consecutive underscores, leading and trailing underscores should not be permitted. 11. A real literal token should be added. It should begin with a sequence of one or more digits following by a decimal point followed by zero or more additional digits. It may optionally end with an exponent. If present, the exponent should begin with an e or E, followed by an optional plus or minus sign followed by one or more digits. The token should be named REAL_LITERAL. 12. A Boolean literal token should be added. It should have two lexemes, which are true and false. The token should be named BOOL_LITERAL. You must also modify the header file tokens.h to include each the new tokens mentioned above. The compilation listing generator code should be modified as follows: 1. The lastLine function should be modified to compute the total number of errors. If any errors occurred the number of lexical, syntactic and semantic errors should be displayed. If no errors occurred, it should display Compiled Successfully. It should return the total number of errors. 2. The appendError function should be modified to count the number of lexical, syntactic and semantic errors. The error message passed to it should be added to a queue of messages that occurred on that line. 3. The displayErrors function should be modified to display all the error messages that have occurred on the previous line and then clear the queue of messages.

Properties of Solids and Bonding Types

SCH4U

Introduction:

define the different types of compounds and their various properties
how can the various properties be used to identify an unknown solid
brief description of the lab

Purpose:

In this investigation you will be using the various physical properties of common solids in order to identify the type of solid.

Analysis:

Classify each type of unknown solid listed in the observation table as either ionic, metallic, molecular, covalent network solid.
Provide support, using the observations, for the classification chosen.
Account for any differences, such as melting point or solubility, for substances within the same category.

Introduction: Solids are formed by a combination of elements. All solids have a shape, a certain hardness, conductivity, and a melting point. These properties are due to the intermolecular forces and bonds that the substance is made up of. Solids have common characteristics the shape and the volume of a solid are established. The difference is that the arrangement of elements to make up the shape and volume. The arrangement of ions is a 3-D shape for all solids. Hardness and melting point are based on the strength and type of intermolecular forces that are present with the compound. There are four types of solids: ionic crystals, metallic crystals, molecular crystals, and covalent network crystals. Ionic crystals are formed by the electrostatic attraction of oppositely charged ions. They are hard but brittle, meaning they can break easily. They can conduct electricity as a liquid (melted) and a solution (dissolved in water) but not as a solid. Ionic crystals have a high melting point. Metallic crystals are metal atoms that are held by metallic bonds. they have a hardness varying from soft to hard and a melting point from low to high. They are shiny, silvery, and flexible. They are great conductors in solid form and are not soluble in water. They conduct heat and electricity well. Molecular crystals are a solid composed of molecules held together by the Van der Walls forces. They have low melting points, are soft and do not conduct electricity as a solid or as a solution. Similar to ionic crystals, molecular crystals have crystal lattice shape. Covalent network crystals are a chemical compound in which the atoms are bonded by covalent bonds in a continuous network. They are very hard, insoluble, have a high melting point and do not conduct electricity. Compared to all the other forms of solids covalent network crystals are the hardest solids and rarely break.      

Purpose: The purpose of this lab is to identify nine mystery solids and classify them under one of the types of solids mentioned in the introduction.                    

Observations:   Sample A B C D E F G H I   MP 231   119   1525 651 80.5 660 3652 1900 772   BP 2270   445   2355 1107 199 2467 4827   1600 Conductive as a Solid Yes   No   No Yes No Yes Yes No No Conductive in a Solution No   No   No No No No No No Yes   Solubility No   Low solubility   No Reactive with water No No No No Yes   Relative Hardness 4   Not tested   9 6 2 8 3 7 5   Appearance Grey shiny   Yellow powder   Grey shiny White grainy White waxy Grey shiny Black powder Translucent White grainy        

Analysis   _____________________________________________________________________________________ _____________________________________________________________________________________ _____________________________________________________________________________________ _____________________________________________________________________________________ _____________________________________________________________________________________ _____________________________________________________________________________________ _____________________________________________________________________________________ _____________________________________________________________________________________ _____________________________________________________________________________________ _____________________________________________________________________________________ _____________________________________________________________________________________ _____________________________________________________________________________________ _____________________________________________________________________________________ _____________________________________________________________________________________ _____________________________________________________________________________________ _____________________________________________________________________________________ _____________________________________________________________________________________ _____________________________________________________________________________________ _____________________________________________________________________________________ _____________________________________________________________________________________ _____________________________________________________________________________________ _____________________________________________________________________________________ _____________________________________________________________________________________ _____________________________________________________________________________________ _____________________________________________________________________________________ _____________________________________________________________________________________ _____________________________________________________________________________________ _____________________________________________________________________________________ _____________________________________________________________________________________ _____________________________________________________________________________________ _____________________________________________________________________________________ _____________________________________________________________________________________ _____________________________________________________________________________________ _____________________________________________________________________________________ _____________________________________________________________________________________ _____________________________________________________________________________________ _____________________________________________________________________________________ _____________________________________________________________________________________ _____________________________________________________________________________________ _____________________________________________________________________________________ _____________________________________________________________________________________ _____________________________________________________________________________________  

References:      

Student Name:                                                   

Properties of Solids and Bonding Types: Checklist for Lab Report

 
 
Looking for ….
Descriptive Feedback

                         
INTRODUCTION  
Is it written in a paragraph format?Does it contain the background information (key terms) that the reader needs to know in order to understand the lab report?Is the information provided accurateHave I provided a brief overview of the lab experiment (this is not procedure or purpose)
        Total:      /4

PURPOSE  
Is the purpose written as a complete sentence beginning with “the purpose of the experiment is…?Is the reason for doing the experiment clear and concise?  
  Total:      /2

OBSERVATIONS
Does your table, graph, or diagram Have a titleIs the title underlinedIs it an appropriate title that describes what is in the table?
    Total:      /3

       
ANALYSIS AND DISCUSSION
Properly identified the unknown solids?The observations were used to justify the choices?The justifications were accurate?  
    Total:    /27

REFERENCES
Have you listed all your sources of information (from the text or a website)?Did you use the proper format?  
    Total:      /2

      WRITTEN COMMUNICATION  
Your report is organized and written so that it flows and makes sense. (You used different types of transition statements (“For example…..” or “In addition…..”, etc.) Is your lab report written as a formal document (does not include your opinion or the use of first person (I and we))You have used your scientific vocabulary correctly.You have no errors in grammar or spelling (this means you edited and proofread!).  
        Total:     /4

***if you have successfully completed each section, a minimum mark given would be a level 4-….to get a 4+ must be exceeding the expectations and have included thoroughness in each section.

                Thinking and Inquiry Mark                                                /27

Communication Mark                                                       /15

Get professional assignment help cheaply

Are you busy and do not have time to handle your assignment? Are you scared that your paper will not make the grade? Do you have responsibilities that may hinder you from turning in your assignment on time? Are you tired and can barely handle your assignment? Are your grades inconsistent?

Whichever your reason may is, it is valid! You can get professional academic help from our service at affordable rates. We have a team of professional academic writers who can handle all your assignments.

Our essay writers are graduates with diplomas, bachelor, masters, Ph.D., and doctorate degrees in various subjects. The minimum requirement to be an essay writer with our essay writing service is to have a college diploma. When assigning your order, we match the paper subject with the area of specialization of the writer.

Why choose our academic writing service?

Plagiarism free papers
Timely delivery
Any deadline
Skilled, Experienced Native English Writers
Subject-relevant academic writer
Adherence to paper instructions
Ability to tackle bulk assignments
Reasonable prices
24/7 Customer Support
Get superb grades consistently

Get Professional Assignment Help Cheaply
Are you busy and do not have time to handle your assignment? Are you scared that your paper will not make the grade? Do you have responsibilities that may hinder you from turning in your assignment on time? Are you tired and can barely handle your assignment? Are your grades inconsistent?
Whichever your reason may is, it is valid! You can get professional academic help from our service at affordable rates. We have a team of professional academic writers who can handle all your assignments.
Our essay writers are graduates with diplomas, bachelor’s, masters, Ph.D., and doctorate degrees in various subjects. The minimum requirement to be an essay writer with our essay writing service is to have a college diploma. When assigning your order, we match the paper subject with the area of specialization of the writer.
Why Choose Our Academic Writing Service?

Plagiarism free papers
Timely delivery
Any deadline
Skilled, Experienced Native English Writers
Subject-relevant academic writer
Adherence to paper instructions
Ability to tackle bulk assignments
Reasonable prices
24/7 Customer Support
Get superb grades consistently

How It Works
1.      Place an order
You fill all the paper instructions in the order form. Make sure you include all the helpful materials so that our academic writers can deliver the perfect paper. It will also help to eliminate unnecessary revisions.
2.      Pay for the order
Proceed to pay for the paper so that it can be assigned to one of our expert academic writers. The paper subject is matched with the writer’s area of specialization.
3.      Track the progress
You communicate with the writer and know about the progress of the paper. The client can ask the writer for drafts of the paper. The client can upload extra material and include additional instructions from the lecturer. Receive a paper.
4.      Download the paper
The paper is sent to your email and uploaded to your personal account. You also get a plagiarism report attached to your paper.

 

PLACE THIS ORDER OR A SIMILAR ORDER WITH Essay fount TODAY AND GET AN AMAZING DISCOUNT

The post lexical analyzer and the compilation listing generator code appeared first on Essay fount.


What Students Are Saying About Us

.......... Customer ID: 12*** | Rating: ⭐⭐⭐⭐⭐
"Honestly, I was afraid to send my paper to you, but you proved you are a trustworthy service. My essay was done in less than a day, and I received a brilliant piece. I didn’t even believe it was my essay at first 🙂 Great job, thank you!"

.......... Customer ID: 11***| Rating: ⭐⭐⭐⭐⭐
"This company is the best there is. They saved me so many times, I cannot even keep count. Now I recommend it to all my friends, and none of them have complained about it. The writers here are excellent."


"Order a custom Paper on Similar Assignment at essayfount.com! No Plagiarism! Enjoy 20% Discount!"