[ Index ] |
PHP Cross Reference of vtigercrm-6.1.0 |
[Summary view] [Print] [Text view]
1 <?php 2 /* 3 [The "BSD licence"] 4 Copyright (c) 2005-2008 Terence Parr 5 All rights reserved. 6 7 Redistribution and use in source and binary forms, with or without 8 modification, are permitted provided that the following conditions 9 are met: 10 1. Redistributions of source code must retain the above copyright 11 notice, this list of conditions and the following disclaimer. 12 2. Redistributions in binary form must reproduce the above copyright 13 notice, this list of conditions and the following disclaimer in the 14 documentation and/or other materials provided with the distribution. 15 3. The name of the author may not be used to endorse or promote products 16 derived from this software without specific prior written permission. 17 18 THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 19 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 20 OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 21 IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 22 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 23 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 27 THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 */ 29 30 31 class CharStreamConst{ 32 public static $EOF = -1; 33 } 34 $CharStream_EOF = -1; 35 36 /** A source of characters for an ANTLR lexer */ 37 interface CharStream extends IntStream { 38 39 /** For infinite streams, you don't need this; primarily I'm providing 40 * a useful interface for action code. Just make sure actions don't 41 * use this on streams that don't support it. 42 */ 43 public function substring($start, $stop); 44 45 /** Get the ith character of lookahead. This is the same usually as 46 * LA(i). This will be used for labels in the generated 47 * lexer code. I'd prefer to return a char here type-wise, but it's 48 * probably better to be 32-bit clean and be consistent with LA. 49 */ 50 public function LT($i); 51 52 /** ANTLR tracks the line information automatically */ 53 function getLine(); 54 55 /** Because this stream can rewind, we need to be able to reset the line */ 56 function setLine($line); 57 58 function setCharPositionInLine($pos); 59 60 /** The index of the character relative to the beginning of the line 0..n-1 */ 61 function getCharPositionInLine(); 62 } 63 64 65 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:08:37 2014 | Cross-referenced by PHPXref 0.7.1 |