- Test modular integration of variables + ctx
- Removing boilerplate acceptors and visitors
- More abstract datatypes ~> Monoid[_] == Sum
- Adding mutable of mutable like operations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grammar test.enumz.TestEnum with org.eclipse.xtext.common.Terminals | |
generate testEnum "http://www.enumz.test/TestEnum" | |
// https://stackoverflow.com/a/27024776/657524 | |
Pattern returns Pattern: | |
d=Direction; | |
enum Direction: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
XNumberLiteral returns XExpression : | |
{XNumberLiteral} value=Number; | |
Number hidden(): | |
HEX | (INT | DECIMAL) ('.' (INT | DECIMAL))?; | |
terminal HEX: | |
('0x'|'0X') ('0'..'9'|'a'..'f'|'A'..'F'|'_')+ | |
('#' (('b'|'B')('i'|'I') | ('l'|'L')))?; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE DeriveGeneric #-} | |
{-# LANGUAGE OverloadedStrings #-} | |
module Main where | |
import Web.Spock | |
import Web.Spock.Config | |
import Control.Monad.Trans | |
import Data.Aeson hiding (json) | |
import Data.IORef |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package fr.inria.diverse.melange; | |
import org.sat4j.specs.TimeoutException; | |
import de.ovgu.featureide.fm.core.base.IFeatureModel; | |
import de.ovgu.featureide.fm.core.base.impl.DefaultFeatureModelFactory; | |
import de.ovgu.featureide.fm.core.base.impl.FMFactoryManager; | |
import de.ovgu.featureide.fm.core.base.impl.Feature; | |
import de.ovgu.featureide.fm.core.configuration.Configuration; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ynh-overlay-switch { | |
display: none !important; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package modularexp | |
import scala.language.higherKinds | |
/** | |
* Created by mleduc on 28/06/17. | |
*/ | |
trait Exp[A] | |
trait Sum[A] extends Exp[A] { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Html exposing (..) | |
import Html.Events exposing (onInput, onClick) | |
import Html.Attributes exposing (value) | |
import Char | |
import Dict exposing (Dict) | |
import Parser exposing(Parser, (|.), (|=), succeed, oneOrMore, zeroOrMore, int, symbol, oneOf, lazy, ignore, run, keyword) | |
-- Prog entry point | |
main = Html.beginnerProgram { model = model, view = view, update = update } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package oamt | |
import java.util.List | |
import java.util.Map | |
import org.eclipse.xtend.lib.annotations.Accessors | |
/** | |
* Fsm AS | |
*/ | |
class FSM { |