code-generation Questions
3
Solved
I am trying to define the BNF of BNF. In other words, I am trying to define the meta-grammar of BNF. That is, a BNF grammar that is an instance of itself and can generate any other BNF grammar.
A...
Polymorphonuclear asked 28/2, 2012 at 2:36
2
Question
Say you have a simple function that returns a value based on a look table for example:
See edit about assumptions.
uint32_t
lookup0(uint32_t r) {
static const uint32_t tbl[] = { 0, 1, 2, ...
Boito asked 18/5, 2022 at 16:45
1
Solved
Problem summary
Hi, I have an issue getting the auto_route package up and running in a Flutter project. Following the official documentation, I have done the following:
Created a placeholder class...
Zoogloea asked 13/5, 2022 at 8:1
4
I am developing an application with an Angular frontend and RESTful Spring Boot Backend
I found this very handy maven plugin openapi-generator-maven-plugin from org.openapitools. With its code gene...
Sheepcote asked 6/7, 2020 at 16:14
7
Solved
How do I do a script/generate migration to create a join table for a has_and_belongs_to_many relationship?
The application runs on Rails 2.3.2, but I also have Rails 3.0.3 installed.
Evacuate asked 7/12, 2010 at 20:18
2
Solved
I have a need to dump the modified python object back into source. So I try to find something to convert real python object to python ast.Node (to use later in astor lib to dump source)
Example of...
Photoemission asked 23/4, 2017 at 18:47
2
I am trying to create a mutation but I keep getting a POST body is missing. I can log the data before urql and codegen hooks are called and I can see the data in the variables on the error, but chr...
Hebel asked 23/9, 2021 at 19:32
2
When I specify an enum like this:
enum Color { RED }
The generated code javap -p Color looks like this:
final class Color extends java.lang.Enum<Color> {
public static final Color RED;
pri...
Namedropper asked 20/4, 2022 at 14:51
1
I use a codegen + react query + my own fetcher to deal with API calls.
https://www.graphql-code-generator.com/plugins/typescript-react-query#using-fetch-with-codegen-configuration
My requirements:
...
Lilybelle asked 28/1, 2022 at 9:38
7
Solved
I have been studying Cypress testing tool. I have huge front end flow to test . Writing so much JS code will be tough .
So i want to know if there is a code generator that records/generates...
Linkoski asked 29/8, 2018 at 8:47
3
Solved
In the MSDN article titled Scaffold Identity in ASP.NET Core projects there is a set of instructions specifically for "creating full identity UI source" (instead of using the Razor Class Library fo...
Weidman asked 7/9, 2018 at 13:41
5
I'm getting an error when I'm feature engineering on 30+ columns to create about 200+ columns. It is not failing the job, but the ERROR shows. I want to know how can I avoid this.
Spark - 2.3.1 Py...
Catalepsy asked 16/6, 2018 at 20:27
4
I have been trying to find the correct settings for IntelliJ's annotation processing in order for it to co-exist with Gradle's build process.
Whenever I build from IntelliJ I cannot get it to reco...
Faceharden asked 26/9, 2017 at 11:15
10
Solved
I'm using Google Protocol Buffers to generate some Java classes for my project. Using Maven 2 and its "antrun" plugin, these classes are freshly generated before compile, output to target/generated...
Toed asked 28/7, 2009 at 8:13
3
Solved
I have the following setup :
public class CustomAttribute : Attribute
{
[...]
public CustomAttribute(Type type)
{
[...]
}
}
[Custom(typeof(Class2))]
public class Class1
{
public void M1(Clas...
Transition asked 20/11, 2020 at 9:26
4
Solved
Given a JSON output of an api:
{
"id": 13,
"name": "horst",
"cars": [{
"brand": "VW",
"maxSpeed": 120,
"isWastingGaz...
Contentment asked 10/12, 2016 at 0:1
0
I'm working on a compiler for the CLR, and I mostly have it working. I'm trying to generate debug information, and I can get it to create an embedded PDB in the generated assembly where all the deb...
Thralldom asked 9/1, 2022 at 1:52
1
Solved
I'm hoping to use SWC in Rust to generate some TypeScript code. Unfortunately, it seems the emitter can only print JavaScript. Is this correct, or is there a way to print TypeScript? For instance, ...
Ascension asked 27/12, 2021 at 11:0
12
Solved
Is there any way to automate writing Builder patterns in IntelliJ?
For example, given this simple class:
class Film {
private String title;
private int length;
public void setTitle(String tit...
Goldwin asked 27/4, 2012 at 9:52
2
Solved
How can I unload an assemlby in .NET Core ?
Note:
.NET Core does not support AppDomains.
Background:
I have to evaluate user-generated VisualBasic expressions dynamically.
So to do this, I d...
Dyandyana asked 26/5, 2020 at 8:10
5
Solved
I'm using the Retrofit (https://pub.dev/packages/retrofit) and Json Serializable (https://pub.dev/packages/json_serializable) libraries for Flutter which both create generated code files that end u...
Mcnally asked 13/5, 2019 at 10:22
6
Solved
I'm looking for a solution that allows me to write native Emacs Lisp code and at compile time turns it into HTML, like Franz's htmlgen:
(html
((:div class "post")
(:h1 "Title"...
Weekender asked 28/4, 2009 at 11:37
3
I would like SCons to generate some source files for me in my src/ directory, and then build them as any other source file in my build directory build/variantX.
This is my SCons file:
import SCon...
Anchorite asked 14/5, 2013 at 14:8
1
You can find the full source code at https://github.com/myblindy/GrimBuilding/tree/efcore (the efcore branch).
I understand that source generators can't automatically harvest dependencies from nuge...
Lonnie asked 17/7, 2021 at 20:32
1
Solved
Problem statement:
I am building a code generator with the build_runner package.
I run flutter pub run build_runner build to execute my code generators.
Question:
How can I debug flutter pub run bu...
Kleeman asked 14/10, 2021 at 7:54
© 2022 - 2024 — McMap. All rights reserved.