Skip to content

Instantly share code, notes, and snippets.

View docker-compose-mysql.yml
# ---------------------------------------------------------------------------
# See the NOTICE file distributed with this work for additional
# information regarding copyright ownership.
#
# This is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2.1 of
# the License, or (at your option) any later version.
#
# This software is distributed in the hope that it will be useful,
@manuelleduc
manuelleduc / src_tree_Main.java
Created Sep 5, 2019
Example Visitor vs Revisitor
View src_tree_Main.java
package tree;
import tree.model.Leaf;
import tree.model.Node;
import tree.revisitor.RevisitorMax;
import tree.revisitor.RevisitorSum;
import tree.visitor.VisitorMax;
import tree.visitor.VisitorSum;
public class Main {
View data.json
{
"aperf_counts": {
"fannkuch_redux:C:default-c": [
[],
[]
],
"fannkuch_redux:Java:default-java": [
[],
[]
],
View DynamicFileTest.java
package fr.mleduc.dynamictests;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.filefilter.TrueFileFilter;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.DynamicTest;
import org.junit.jupiter.api.TestFactory;
import java.io.File;
import java.nio.charset.Charset;
View Compilation.md
  • ClassA2.class
  • ClassA.class
  • Expr.class
  • IntLit$.class'
  • IntLit.class
  • ObjectB$.class'
  • ObjectB.class
  • Sum$.class'
  • Sum.class
  • TraitC.class
View FindUsedConcepts.java
package org.eclipse.emf.ecoretools.ale.compiler.generic;
import java.io.IOException;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;
import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.ecore.EClass;
View A.java
package test.testjpa.domain;
import javax.persistence.*;
import java.util.ArrayList;
import java.util.List;
@Entity
public class A {
private Long id;
View FunctionBody.java
package fr.mleduc.simplelanguage.revisitor.model.stmt.expr;
import com.oracle.truffle.api.nodes.NodeInfo;
import fr.mleduc.simplelanguage.revisitor.model.stmt.Stmt;
@NodeInfo(description = "function-body")
public class FunctionBody extends Expr {
@Child
private Stmt bodyNode;
View SLRevisitor.java
package fr.mleduc.simplelanguage.revisitor.revisitor;
import fr.mleduc.simplelanguage.revisitor.model.stmt.Block;
import fr.mleduc.simplelanguage.revisitor.model.stmt.Break;
import fr.mleduc.simplelanguage.revisitor.model.stmt.Continue;
import fr.mleduc.simplelanguage.revisitor.model.stmt.If;
import fr.mleduc.simplelanguage.revisitor.model.stmt.Return;
import fr.mleduc.simplelanguage.revisitor.model.stmt.Stmt;
import fr.mleduc.simplelanguage.revisitor.model.stmt.While;
import fr.mleduc.simplelanguage.revisitor.model.stmt.expr.And;
View ExecSLRevisitor.java
package fr.mleduc.simplelanguage.revisitor.revisitors;
import com.oracle.truffle.api.CompilerAsserts;
import com.oracle.truffle.api.frame.FrameSlot;
import com.oracle.truffle.api.frame.FrameSlotKind;
import com.oracle.truffle.api.frame.FrameUtil;
import com.oracle.truffle.api.frame.VirtualFrame;
import com.oracle.truffle.api.nodes.ExplodeLoop;
import com.oracle.truffle.api.profiles.BranchProfile;
import com.oracle.truffle.api.profiles.ConditionProfile;
You can’t perform that action at this time.