Permalink
Browse files

refinements in that library

  • Loading branch information...
elucash committed Jun 10, 2017
1 parent 33c4035 commit d09caa0a07fe4d128b046f89f52feac33f26f786
@@ -1,3 +1,2 @@
-ea
-Xmx2g
-Xms1g
-Xms1g
@@ -22,7 +22,7 @@
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="lib" path="buck-out/gen/lib/guava_jar/guava-20.0.jar" sourcepath="buck-out/gen/lib/guava_src/guava-20.0-sources.jar"/>
<classpathentry kind="lib" path="buck-out/gen/lib/guava_jar/guava-21.0.jar" sourcepath="buck-out/gen/lib/guava_src/guava-21.0-sources.jar"/>
<classpathentry kind="lib" path="buck-out/gen/lib/jsr305_jar/jsr305-3.0.1.jar" sourcepath="buck-out/gen/lib/jsr305_src/jsr305-3.0.1-sources.jar"/>
<classpathentry kind="lib" path="buck-out/gen/lib/junit_jar/junit-4.12.jar" sourcepath="buck-out/gen/lib/junit_src/junit-4.12-sources.jar"/>
<classpathentry kind="lib" path="buck-out/gen/lib/hamcrest_jar/hamcrest-core-1.3.jar" sourcepath="buck-out/gen/lib/hamcrest_src/hamcrest-core-1.3-sources.jar"/>
@@ -1,4 +1,13 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.builder.cleanOutputFolder=clean
org.eclipse.jdt.core.builder.duplicateResourceTask=warning
org.eclipse.jdt.core.builder.invalidClasspath=abort
org.eclipse.jdt.core.builder.recreateModifiedClassFileInOutputFolder=ignore
org.eclipse.jdt.core.builder.resourceCopyExclusionFilter=*.launch,*.uad,*.ucd,*.uld,*.upd,*.udd,*.uod,*.usd,*.utd,*.uud,*.odd,*.ead,*.ecd,*.eld,*.epd,*.edd,*.eod,*.esd,*.etd,*.eud,*.urd,*.uml,*.ecore, *.ceylon
org.eclipse.jdt.core.circularClasspath=error
org.eclipse.jdt.core.classpath.exclusionPatterns=enabled
org.eclipse.jdt.core.classpath.multipleOutputLocations=enabled
org.eclipse.jdt.core.classpath.outputOverlappingAnotherSource=warning
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
@@ -7,6 +16,7 @@ org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.maxProblemPerUnit=30
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
@@ -18,7 +28,7 @@ org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=80
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=48
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=48
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=80
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=48
org.eclipse.jdt.core.formatter.alignment_for_assignment=16
org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
@@ -32,7 +42,7 @@ org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
org.eclipse.jdt.core.formatter.alignment_for_parameterized_type_references=0
org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=48
org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=48
org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=48
org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=16
org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=80
org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=32
org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=80
@@ -315,4 +325,6 @@ org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
org.eclipse.jdt.core.formatter.wrap_before_conditional_operator=true
org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true
org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true
org.eclipse.jdt.core.incompatibleJDKLevel=warning
org.eclipse.jdt.core.incompleteClasspath=error
org.eclipse.jdt.core.javaFormatter=org.eclipse.jdt.core.defaultJavaFormatter
@@ -0,0 +1,2 @@
eclipse.preferences.version=1
org.eclipse.jdt.launching.PREF_STRICTLY_COMPATIBLE_JRE_NOT_AVAILABLE=warning
@@ -16,7 +16,7 @@ type Person{
} impl {
name String { // return name
}
age Bool { // return age
name Bool { // return age
}
}
@@ -8,16 +8,16 @@ prebuilt_jar(
remote_file(
name = 'guava_jar',
out = 'guava-20.0.jar',
url = 'https://repo1.maven.org/maven2/com/google/guava/guava/20.0/guava-20.0.jar',
sha1 = '89507701249388e1ed5ddcf8c41f4ce1be7831ef'
out = 'guava-21.0.jar',
url = 'https://repo1.maven.org/maven2/com/google/guava/guava/21.0/guava-21.0.jar',
sha1 = '3a3d111be1be1b745edfa7d91678a12d7ed38709'
)
remote_file(
name = 'guava_src',
out = 'guava-20.0-sources.jar',
url = 'https://repo1.maven.org/maven2/com/google/guava/guava/20.0/guava-20.0-sources.jar',
sha1 = '9c8493c7991464839b612d7547d6c263adf08f75'
out = 'guava-21.0-sources.jar',
url = 'https://repo1.maven.org/maven2/com/google/guava/guava/21.0/guava-21.0-sources.jar',
sha1 = 'b9ed26b8c23fe7cd3e6b463b34e54e5c6d9536d5'
)
prebuilt_jar(
2 prj.js
@@ -2,7 +2,7 @@ let l = require('./.prj.lib')
l.project({
lib: {
guava: 'com.google.guava:guava:20.0',
guava: 'com.google.guava:guava:21.0',
jsr305: 'com.google.code.findbugs:jsr305:3.0.1',
junit: 'junit:junit:4.12',
hamcrest: 'org.hamcrest:hamcrest-core:1.3',
@@ -38,7 +38,7 @@ def java_package(name, srcs = [], test_src = [], deps = [], res = [], test_deps
srcs = glob(['Test*.java']) if not test_src else test_src,
deps = dedupe(deps + lib_default + lib_test + [':' + name] + test_deps),
resources = glob(['*.java']),
vm_args = ['-ea']
vm_args = ['-ea', '-Dio.immutables.that.replace-error-message= ']
)
def dedupe(seq):
@@ -34,4 +34,11 @@ public void fold() {
that(Vect.of(1, 1, 1).fold(10, (a, b) -> a + b)).is(13);
that(Vect.of(2, 2, 2).reduce((a, b) -> a * b)).is(8);
}
@Test
public void range() {
that(Vect.of(1, 2, 3).rangeFrom(2)).isOf(3);
that(Vect.of(1, 2, 3).range(0, 1)).isOf(1);
that(Vect.of(1, 2, 3).range(2, 3)).isOf(3);
}
}
@@ -53,6 +53,11 @@ public boolean hasNext() {
public E next() {
return (E) elements[index++];
}
@Override
public String toString() {
return Vect.class.getSimpleName() + ".Iterator(at " + index + ")";
}
};
}
@@ -9,8 +9,8 @@
private int mismatchedTokenIndex = -1;
private AstProduction.Id mismatchedProduction;
private AstProduction.Id production;
private int mismatchedExpectedToken = Terms.UNRECOGNIZED;
private int mismatchedActualToken = Terms.UNRECOGNIZED;
private int mismatchedExpectedToken = Terms.UNEXPECTED;
private int mismatchedActualToken = Terms.UNEXPECTED;
public ParserBase(Terms terms) {
this.terms = terms;
Oops, something went wrong.

0 comments on commit d09caa0

Please sign in to comment.