~ubuntu-branches/ubuntu/breezy/antlr/breezy

« back to all changes in this revision

Viewing changes to examples/python/lexerTester/simplelexer1.g

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2005-06-29 16:11:22 UTC
  • mfrom: (0.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050629161122-g81crc3z92p5xhsg
Tags: 2.7.5-6ubuntu4
Build depend on java-gcj-compat-dev, depend on java-gcj-compat.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// This is -*- ANTLR -*- code
 
2
 
 
3
header {
 
4
import sys
 
5
}
 
6
 
 
7
options {
 
8
  language = "Python";
 
9
}
 
10
 
 
11
//----------------------------------------------------------------------------
 
12
// The lexer
 
13
//----------------------------------------------------------------------------
 
14
 
 
15
class SimpleLexer1 extends Lexer;
 
16
 
 
17
options {
 
18
  k = 1;                        // A lookahead depth of 1
 
19
  codeGenDebug = true;
 
20
}
 
21
 
 
22
A       :       'A'
 
23
        ;
 
24
 
 
25
//NL    :       '\r'   { self.newline() }
 
26
//      ;