public class ScopeParser extends Object
| Constructor and Description |
|---|
ScopeParser() |
| Modifier and Type | Method and Description |
|---|---|
static int |
_splitArgumentList(String actionText,
int start,
int targetChar,
int separatorChar,
List<Pair<String,Integer>> args) |
static AttributeDict |
parse(ActionAST action,
String s,
char separator,
ErrorManager errMgr) |
static Attribute |
parseAttributeDef(ActionAST action,
Pair<String,Integer> decl,
ErrorManager errMgr)
For decls like "String foo" or "char *foo32[]" compute the ID
and type declarations.
|
static AttributeDict |
parseTypedArgList(ActionAST action,
String s,
ErrorManager errMgr)
Given an arg or retval scope definition list like
Map
|
static List<Pair<String,Integer>> |
splitDecls(String s,
int separatorChar)
Given an argument list like
x, (*a).foo(21,33), 3.2+1, '\n',
"a,oo\nick", {bl, "fdkj"eck}, ["cat\n,", x, 43]
convert to a list of attributes.
|
public static AttributeDict parseTypedArgList(@Nullable ActionAST action, String s, ErrorManager errMgr)
public static AttributeDict parse(@Nullable ActionAST action, String s, char separator, ErrorManager errMgr)
public static Attribute parseAttributeDef(@Nullable ActionAST action, @NotNull Pair<String,Integer> decl, ErrorManager errMgr)
public static List<Pair<String,Integer>> splitDecls(String s, int separatorChar)
Copyright © 1992-2013 ANTLR. All Rights Reserved.