YANGTOOLS-706: Split out yang-parser-rfc7950
[yangtools.git] / yang / yang-parser-rfc7950 / src / main / antlr / IfFeatureExpressionLexer.g4
1 //
2 // Copyright (c) 2017 Cisco Systems, Inc. and others.  All rights reserved.
3 //
4 // This program and the accompanying materials are made available under the
5 // terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 // and is available at http://www.eclipse.org/legal/epl-v10.html
7 //
8 lexer grammar IfFeatureExpressionLexer;
9
10 @header {
11 package org.opendaylight.yangtools.antlrv4.code.gen;
12 }
13
14 NOT : 'not';
15 LP : '(';
16 RP : ')';
17 AND : 'and';
18 OR : 'or';
19 COLON : ':';
20 SEP: [ \n\r\t]+;
21 IDENTIFIER : [a-zA-Z][a-zA-Z0-9_-]*;