public class Parser extends Object
| Constructor and Description |
|---|
Parser(de.unkrig.commons.lang.protocol.ProducerWhichThrows<String,? extends EX> producer,
OutputStream out) |
| Modifier and Type | Method and Description |
|---|---|
Find.Expression |
parse()
expression := [ or-expression ]
"No token" means "-print".
|
static de.unkrig.commons.lang.protocol.Predicate<Long> |
parseNumericArgument(String text)
numeric := [ '+' | '-' ] digit { digit } [ 'k' | 'M' | 'G' ]
|
public Parser(de.unkrig.commons.lang.protocol.ProducerWhichThrows<String,? extends EX> producer, OutputStream out)
producer - The source of tokens to parseout - Where the Find.CatAction writes its outputpublic Find.Expression parse() throws de.unkrig.commons.text.parser.ParseException
expression := [ or-expression ]"No token" means "-print".
An expression without any actions is silently converted to "expr && -print".
Example:
-name "*.java" -o ( -name "*foo*" ! -name "*foobar" )
de.unkrig.commons.text.parser.ParseExceptionCopyright © 2019 Arno Unkrig. All rights reserved.