1 / 6

Regular Expressions & BNF

Regular Expressions & BNF. This lesson we, looking at the syntax of a language, will be. Yes, hmmm. Formal Language. Is defined using: A set alphabet Rules of syntax for constructing the language. Tasks. A formal language is used for car licence plates.

nicola
Download Presentation

Regular Expressions & BNF

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Regular Expressions & BNF

  2. This lesson we, looking at the syntax of a language, will be. Yes, hmmm.

  3. Formal Language • Is defined using: • A set alphabet • Rules of syntax for constructing the language

  4. Tasks • A formal language is used for car licence plates. • Define the alphabet for this language • Construct a string for a licence plate.

  5. Regular Language • A regular language is any string that can be created using a Finite State Machine. • Eg: a(a|b)* Or is signified by | One or more is signified by *

  6. Tasks • A web address uses a regular language • Define a web address using a Regular Expression

More Related