Questions tagged [codegen]

Use codegen for questions related to language features or tools which facilitate translating code between languages or creating code from metadata

References

242 questions
0
votes
1 answer

Context sensitve code generation with grako

I'm in a situation where I've built an abstract syntax tree (AST) with grako's model builder semantics. Now I need to generate javascript code from that AST. I have defined several templates, but I realized not all cases can be handled with simple…
G.G
  • 899
  • 6
  • 15
0
votes
1 answer

CXF codegen-plugin not working

I'm trying to get the cxf-codegen-plugin to generate sources from my wsdl file. But Nothing happens when i execute mvn generate-source with eclipse luna. It looks like plugin itself not configured properly. My pom.xml
Gnani
  • 139
  • 1
  • 8
0
votes
0 answers

Splitting a monolithic code based on a condition dispersed throughout the code

We use the same monolithic code for two different contexts based on an environment variable. For example, each class is as follows, where global variable context is assigned "A" or "B" based on an environment variable at initialization: class Demo …
claudius
  • 1,112
  • 1
  • 10
  • 23
0
votes
2 answers

run slick-codegen-example with current versions

I am currently making my first steps with Slick. I am particularly interested in codegen. To get started I installed Typesafe Activator (activator-dist-1.3.7), started the Activator ui, created a new project from template "Using Slicks default code…
Marcus
  • 1,857
  • 4
  • 22
  • 44
0
votes
1 answer

Efficient way to access a property of a class by the string name

I want access to a property value by its name. The only way i know it's by reflection with a code like this: public static object GetPropValue(object src, string propName) { return src.GetType().GetProperty(propName).GetValue(src, null); …
Gianluigi Liguori
  • 351
  • 1
  • 5
  • 13
0
votes
1 answer

echoprint fingerprint generation Windows vs Linux

I used to generate fingerprint for an audiofile in Windows 7-64bit and on Ubuntu but fingerprint codes doesnt same (i mean the code field. ). I used compiled Windows source. does it supposed to be not same or i did something…
regata
  • 21
  • 1
  • 6
0
votes
1 answer

Generator of C code for Bluez

I'm about to develop my program bluetooth in C on ARM platform, which is supposed to be able to exchange information with bluez via dbus interface. I have succeeded in cross-compiling the Bluez, but the part of "client" in C is always a big work…
0
votes
1 answer

sympy codegen: force uniform signature

I am creating a series of parametric sympy functions dependent on x,y variables. Some of the functions turn out to be only dependent on some of the variables. therefore, when I call 'codegen', the interface of the created functions varies (sometimes…
zuuz
  • 859
  • 1
  • 12
  • 23
0
votes
0 answers

Slick custom codegen output empty?

I have previously used the codegen for slick like this: scala.slick.codegen.SourceCodeGenerator.main( Array("com.typesafe.slick.driver.ms.SQLServerDriver", "net.sourceforge.jtds.jdbc.Driver", …
user568109
  • 47,225
  • 17
  • 99
  • 123
0
votes
1 answer

Swagger Codegen does not generate generic List

In my api model I have: @JsonProperty("repriceItems") private List items; swagger (I think correct): "repriceItems": { "items": { "type": "RepriceItem" }, "required": false, "type": "List" } But when I run swagger codegen for Java or…
komo
  • 249
  • 4
  • 10
0
votes
1 answer

Getting two parameters from c function in matlab

i had a code that c send back 1 number (mex) the matlab code was vMsg=unit32(Gateway_test_app(2)) now i added 1 more return value to Gateway_test_app(2) which is s STRING what i need to do to get the two values back i was thinking about something…
JohnnyF
  • 1,053
  • 4
  • 16
  • 31
0
votes
1 answer

java.lang.UnsatisfiedLinkError: Couldn't load echoprint-jni from loader dalvik.system.PathClassLoader

I am using Echoprint in my android project as explained here and it works ok. However, when I try to add the metaioSDK library to the project (just add it, not even use it), I can't run Echoprint anymore. I get: 07-17 14:20:34.194:…
KKO
  • 1,913
  • 3
  • 27
  • 35
0
votes
1 answer

keep around a piece of context built during compile-time for later use in runtime?

I'm aware this might be a broad question (there's no specific code for you to look at), but I'm hoping I'd get some insights as to what to do, or how to approach the problem. To keep things simple, suppose the compiler that I'm writing performs…
One Two Three
  • 22,327
  • 24
  • 73
  • 114
0
votes
2 answers

Qcodo/Qcube gen model error "syntax error, unexpected ')' in"

I'm using a framework called Qcube. before it was known for the name Qcodo. It has this feature called codegen where it generated model for all of your database table including their relations if any. The problem is that its generated files have…
Ikoy
  • 82
  • 1
  • 7
0
votes
2 answers

One XSD, two code generation tools, two namespaces

I have a XSD file, from which I want to generate C# and Java classes as well. I first set the namespace in the XSD according to my C# namespace where my classes resides. The generation (with the Microsoft tools) works fine and also the serialisation…
DerApe
  • 3,097
  • 2
  • 35
  • 55
1 2 3
16
17