Flexc++ (Version 0.5.3) User Guide

Flexc++ (Version 0.5.3) User Guide

Richard Berendsen, Frank B. Brokken and Jean-Paul van Oosten

Rijksuniversiteit Groningen

2008-2010

Table of Contents

Chapter 1: Introduction

Chapter 2: Some simple examples

2.1: A simple lexer file and main function

Chapter 3: Differences with flex/flex++

3.1: Format of the input file

3.1.1: Definition section
3.1.2: Rules section
3.1.3: User code section

3.2: Patterns

3.3: Generated files

3.4: Comments

3.5: Functions and macros

3.6: Multiple input streams

Chapter 4: Format of the input file

4.1: Definition section

4.2: Rules section

4.3: Comments

Chapter 5: Patterns

Chapter 6: Actions

Chapter 7: Startconditions (Miniscanners)

7.1: Notation details

Chapter 8: Generated files

Chapter 9: Multiple input streams

9.1: StreamInfo

9.2: Public members

9.3: Option directives

9.4: Examples

9.4.1: Default StreamInfo
9.4.2: User supplied StreamInfo
9.4.3: Switching streams with switchStream