Skip to content

Commit

Permalink
Merge branch 'release' for version 2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
joey-coleman committed Jun 12, 2014
2 parents 4b615e7 + 61938f5 commit 31fd8ab
Show file tree
Hide file tree
Showing 970 changed files with 10,504 additions and 41,007 deletions.
6 changes: 0 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ jdk:
branches:
except:
- docs
env:
global:
- SONATYPE_USERNAME=joeycoleman
- secure: "LV3gkLdIXN/W10xeoIZ5lxFbVGeOPjwEvWjYzoCeX/MQrSWiY+oK22mhL1H84RczHHk9jvwlRK9ZEElKOj0vl/ywL/mF7WJgoUIDMUIAQ/jeZsJ7tF4S5o1Drjgwa6dZYLgEkNXWE4cb63vDGUQhRJz3Qq3/fntmvbKL2qCmJcE="
before_install:
- mvn -version
- if [ $TRAVIS_BRANCH == "development" ] ; then { sudo apt-get update -qq; sudo apt-get install -qq nsis nsis-common nsis-pluginapi; } ; fi
Expand All @@ -27,5 +23,3 @@ script:
- echo travis_fold:start:compile_ide
- mvn -B install -f ide/pom.xml -Dgit-commit-id.skip=true -Pall-platforms
- echo travis_fold:end:compile_ide
after_success:
- if [ $TRAVIS_BRANCH == "development" ] ; then { echo \"-*- Deploying snapshots to Sonatype -*-\"; python tools/scripts/addServer.py; mvn -Dmaven.test.skip=true -Dmaven.javadoc.skip=true deploy --settings ~/.m2/mySettings.xml; } ; fi
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,8 @@ This directory contains several subdirectories:
* Documentation for VDM and Overture is in `documentation`
* Auxiliary code that supports the build process are found in `tools`

## Tests
If running on a terminal with no gfx enabled then disable the UI test profile `ui-tests` profile. The maven argument for this is `-P ui-tests` and is used like: `mvn install -P !ui-tests` .



7 changes: 0 additions & 7 deletions core/ast/.gitignore

This file was deleted.

4 changes: 2 additions & 2 deletions core/ast/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>org.overturetool</groupId>
<artifactId>core</artifactId>
<version>2.0.8</version>
<version>2.1.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand All @@ -13,7 +13,7 @@
<name>The Overture Abstract Syntax Tree </name>

<properties>
<astcreator.version>1.6.4</astcreator.version>
<astcreator.version>1.6.6</astcreator.version>
</properties>

<build>
Expand Down

This file was deleted.

28 changes: 15 additions & 13 deletions core/ast/src/main/java/org/overture/ast/lex/LexLocation.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ public class LexLocation implements Serializable, ExternalNode, ILexLocation
@Override
public LexLocation clone()
{
LexLocation location= new LexLocation(file, module, startLine, startPos, endLine, endPos, startOffset, endOffset);
LexLocation location = new LexLocation(file, module, startLine, startPos, endLine, endPos, startOffset, endOffset);
location.hits = hits;
location.executable=executable;
location.executable = executable;
return location;
}

Expand Down Expand Up @@ -319,10 +319,10 @@ public static void resetLocations()
uniqueLocations = new HashMap<LexLocation, LexLocation>();
}

// synchronized (locationToAstNode)
// {
// locationToAstNode = new Hashtable<LexLocation, INode>();
// }
// synchronized (locationToAstNode)
// {
// locationToAstNode = new Hashtable<LexLocation, INode>();
// }
//
// synchronized (nameSpans)
// {
Expand Down Expand Up @@ -627,28 +627,30 @@ public static void mergeHits(File source, File coverage) throws IOException

br.close();
}

/**
* This method handles the case where a location exist both with hits>0 and hits==0. It will remove the location with hits==0 when another location hits>0 exists
* This method handles the case where a location exist both with hits>0 and hits==0. It will remove the location
* with hits==0 when another location hits>0 exists
*
* @param locations
* @return
* @return the list of locations where the unwanted locations have been removed
*/
public static List<LexLocation> removeDuplicates(List<LexLocation> locations)
{
List<LexLocation> tmp = new Vector<LexLocation>();
c: for (LexLocation l1 : locations)
c: for (LexLocation l1 : locations)
{
if(l1.hits==0)
if (l1.hits == 0)
{
for (LexLocation l2 : locations)
{
if(l1.equals(l2)&& l2.hits>0)
if (l1.equals(l2) && l2.hits > 0)
{
continue c;
}
}
tmp.add(l1);
}else
} else
{
tmp.add(l1);
}
Expand Down
6 changes: 6 additions & 0 deletions core/ast/src/main/resources/overtureII.astv2.tostring
Original file line number Diff line number Diff line change
Expand Up @@ -267,3 +267,9 @@ import org.overture.ast.util.ToStringUtil;

//object designator
%objectDesignator->identifier = [name];
%objectDesignator->apply = [object] "(" + $Utils.listToString($[args]$)$ + ")"
%objectDesignator->field = [object]+"."+[fieldName]
%objectDesignator->new = "new "+[expression]
%objectDesignator->self = [self]


2 changes: 1 addition & 1 deletion core/codegen-runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>org.overturetool</groupId>
<artifactId>core</artifactId>
<version>2.0.8<!--Replaceable: Main Version--></version>
<version>2.1.0<!--Replaceable: Main Version--></version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,10 @@ public static void printf(String format, List<Object> args) {
System.out.printf(format, args.toArray());
System.out.flush();
}

public static void printf(VDMSeq seq, List<Object> args) {

System.out.printf(seq.toString(), args.toArray());
System.out.flush();
}
}
Loading

0 comments on commit 31fd8ab

Please sign in to comment.