@Override protected com.ochafik.lang.jnaerator.parser.ObjCppParser newObjCppParser(TypeConversion typeConverter, String s, boolean verbose, PrintStream errorOut) throws IOException { com.ochafik.lang.jnaerator.parser.ObjCppParser parser = super.newObjCppParser(typeConverter, s, verbose, errorOut); parser.allowKinds(ModifierKind.OpenCL); return parser; }
ObjCppParser parser = newObjCppParser(typeConverter, source, config.verbose, pout); if (topLevelTypeDefs != null) { parser.topLevelTypeIdentifiers = topLevelTypeDefs;
ObjCppParser parser = newObjCppParser(typeConverter, source, config.verbose, pout); if (topLevelTypeDefs != null) { parser.topLevelTypeIdentifiers = topLevelTypeDefs;
Expression expression = new JNAeratorParser().newObjCppParser(typeConverter, preprocessedMacro, verbose, null).expression();//.expr; if (expression == null) { continue;
Expression expression = new JNAeratorParser().newObjCppParser(typeConverter, preprocessedMacro, verbose, null).expression();//.expr; if (expression == null) { continue;
public TypeRef parseType(Node node) throws XPathExpressionException, RecognitionException, IOException { if (node == null) { return null; } TypeRef declaredType = null; try { String dt = XMLUtils.getAttribute(node, "declared_type"); if (dt != null) { ObjCppParser parser = new JNAeratorParser().newObjCppParser(result.typeConverter, dt, false, null); parser.setupScopes(); declaredType = parser.mutableTypeRef(); } } catch (Exception ex) { ex.printStackTrace(); } TypeRef inferredType = null; if (declaredType == null || declaredType instanceof SimpleTypeRef) { inferredType = parseAndReconciliateType(XMLUtils.getAttribute(node, "type"), XMLUtils.getAttribute(node, "type64")); if (inferredType != null && declaredType instanceof SimpleTypeRef && !inferredType.toString().equals(declaredType.toString())) { String sn = ((SimpleTypeRef) declaredType).getName().toString(); result.addWeakTypeDef(inferredType.clone(), sn); } } return declaredType != null ? declaredType : inferredType; }
public TypeRef parseType(Node node) throws XPathExpressionException, RecognitionException, IOException { if (node == null) { return null; } TypeRef declaredType = null; try { String dt = XMLUtils.getAttribute(node, "declared_type"); if (dt != null) { ObjCppParser parser = new JNAeratorParser().newObjCppParser(result.typeConverter, dt, false, null); parser.setupScopes(); declaredType = parser.mutableTypeRef(); } } catch (Exception ex) { ex.printStackTrace(); } TypeRef inferredType = null; if (declaredType == null || declaredType instanceof SimpleTypeRef) { inferredType = parseAndReconciliateType(XMLUtils.getAttribute(node, "type"), XMLUtils.getAttribute(node, "type64")); if (inferredType != null && declaredType instanceof SimpleTypeRef && !inferredType.toString().equals(declaredType.toString())) { String sn = ((SimpleTypeRef) declaredType).getName().toString(); result.addWeakTypeDef(inferredType.clone(), sn); } } return declaredType != null ? declaredType : inferredType; }