forked from jasder/antlr
removed legacy
This commit is contained in:
parent
373ef0ae92
commit
877b784be6
|
@ -1 +0,0 @@
|
||||||
Subproject commit 1930a7b29d4e0bcc47f22d68282d70ad2552dc2e
|
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit a0560d197e8a96bfea52f9bf663cf8bc58127047
|
|
|
@ -1,226 +0,0 @@
|
||||||
-pascalCase+
|
|
||||||
-nativeTypeSystem
|
|
||||||
-organizeUsings
|
|
||||||
-nativeInterfaces
|
|
||||||
-indentWithSpaces
|
|
||||||
-paramCountFileNames
|
|
||||||
-separateInterfaceConstants
|
|
||||||
-maxColumns 1000
|
|
||||||
-sharpenNamespace Antlr4.Runtime.Sharpen
|
|
||||||
|
|
||||||
-methodMapping System.out.println System.Console.WriteLine
|
|
||||||
|
|
||||||
-namespaceMapping org.antlr.v4 Antlr4
|
|
||||||
|
|
||||||
-methodMapping java.util.Iterator.hasNext HasNext
|
|
||||||
-methodMapping java.util.Iterator.next Next
|
|
||||||
|
|
||||||
-typeMapping java.util.Comparator System.Collections.IComparer
|
|
||||||
-typeMapping java.util.ArrayList System.Collections.ArrayList
|
|
||||||
|
|
||||||
-typeMapping java.util.ArrayDeque<> System.Collections.Generic.Stack
|
|
||||||
-typeMapping java.util.Deque<> System.Collections.Generic.Stack
|
|
||||||
|
|
||||||
-methodMapping java.util.List.addAll AddRange
|
|
||||||
-methodMapping java.util.List.remove(int) RemoveAt
|
|
||||||
-methodMapping java.util.AbstractList.addAll AddRange
|
|
||||||
-methodMapping java.util.ArrayList.addAll AddRange
|
|
||||||
|
|
||||||
-methodMapping java.util.concurrent.ConcurrentMap.putIfAbsent GetOrAdd
|
|
||||||
|
|
||||||
-fullyQualify File
|
|
||||||
-namespaceMapping java.lang.ref Antlr4.Runtime.Sharpen
|
|
||||||
-namespaceMapping java.lang Antlr4.Runtime.Sharpen
|
|
||||||
-namespaceMapping java.io System.IO
|
|
||||||
-namespaceMapping java.util.concurrent.atomic Antlr4.Runtime.Sharpen
|
|
||||||
-namespaceMapping java.util.concurrent.locks Antlr4.Runtime.Sharpen
|
|
||||||
-namespaceMapping java.util.concurrent Antlr4.Runtime.Sharpen
|
|
||||||
-namespaceMapping java.util.zip Antlr4.Runtime.Sharpen
|
|
||||||
-namespaceMapping java.util.regex Antlr4.Runtime.Sharpen
|
|
||||||
-namespaceMapping java.util Antlr4.Runtime.Sharpen
|
|
||||||
-namespaceMapping java.nio.channels Antlr4.Runtime.Sharpen
|
|
||||||
-namespaceMapping java.nio.charset Antlr4.Runtime.Sharpen
|
|
||||||
-namespaceMapping java.nio Antlr4.Runtime.Sharpen
|
|
||||||
-namespaceMapping java.text Antlr4.Runtime.Sharpen
|
|
||||||
-namespaceMapping java.net Antlr4.Runtime.Sharpen
|
|
||||||
-namespaceMapping javax.crypto.interfaces Antlr4.Runtime.Sharpen
|
|
||||||
-namespaceMapping javax.crypto.spec Antlr4.Runtime.Sharpen
|
|
||||||
-namespaceMapping javax.crypto Antlr4.Runtime.Sharpen
|
|
||||||
-namespaceMapping java.security.interfaces Antlr4.Runtime.Sharpen
|
|
||||||
-namespaceMapping java.security.spec Antlr4.Runtime.Sharpen
|
|
||||||
-namespaceMapping java.security.cert Antlr4.Runtime.Sharpen
|
|
||||||
-namespaceMapping java.security Antlr4.Runtime.Sharpen
|
|
||||||
-namespaceMapping javax.net.ssl Antlr4.Runtime.Sharpen
|
|
||||||
-methodMapping java.lang.Object.memberwiseClone Clone
|
|
||||||
-methodMapping java.nio.charset.Charset.forName Antlr4.Runtime.Sharpen.Extensions.GetEncoding
|
|
||||||
-methodMapping java.util.ArrayList.trimToSize TrimExcess
|
|
||||||
-methodMapping java.lang.Integer.toOctalString Antlr4.Runtime.Sharpen.Extensions.ToOctalString
|
|
||||||
-methodMapping java.lang.Integer.toHexString Antlr4.Runtime.Sharpen.Extensions.ToHexString
|
|
||||||
-methodMapping java.lang.Integer.bitCount Antlr4.Runtime.Sharpen.Extensions.BitCount
|
|
||||||
-methodMapping java.lang.Integer.numberOfLeadingZeros Antlr4.Runtime.Sharpen.Extensions.NumberOfLeadingZeros
|
|
||||||
-methodMapping java.lang.Integer.numberOfTrailingZeros Antlr4.Runtime.Sharpen.Extensions.NumberOfTrailingZeros
|
|
||||||
-methodMapping java.lang.Integer.lowestOneBit Antlr4.Runtime.Sharpen.Extensions.LowestOneBit
|
|
||||||
-methodMapping java.lang.Boolean.valueOf Antlr4.Runtime.Sharpen.Extensions.ValueOf
|
|
||||||
-methodMapping java.lang.Boolean.parseBoolean System.Boolean.Parse
|
|
||||||
-methodMapping java.lang.Integer.valueOf Antlr4.Runtime.Sharpen.Extensions.ValueOf
|
|
||||||
-methodMapping java.lang.Integer.toString Antlr4.Runtime.Sharpen.Extensions.ToString
|
|
||||||
-methodMapping java.lang.Long.valueOf Antlr4.Runtime.Sharpen.Extensions.ValueOf
|
|
||||||
-methodMapping java.util.Random.nextInt Next
|
|
||||||
-methodMapping java.util.Arrays.binarySearch System.Array.BinarySearch
|
|
||||||
-methodMapping java.util.TimeZone.getTimeZone Antlr4.Runtime.Sharpen.Extensions.GetTimeZone
|
|
||||||
-methodMapping java.lang.Throwable.initCause Antlr4.Runtime.Sharpen.Extensions.InitCause
|
|
||||||
-methodMapping java.lang.Character.isSpaceChar System.Char.IsWhiteSpace
|
|
||||||
-methodMapping java.lang.Character.isLowerCase System.Char.IsLower
|
|
||||||
-methodMapping java.lang.Character.isUpperCase System.Char.IsUpper
|
|
||||||
-methodMapping java.lang.Character.toLowerCase System.Char.ToLower
|
|
||||||
-methodMapping java.lang.Character.toUpperCase System.Char.ToUpper
|
|
||||||
-methodMapping java.util.HashMap<,>.containsKey ContainsKey
|
|
||||||
-methodMapping java.lang.System.identityHashCode System.Runtime.CompilerServices.RuntimeHelpers.GetHashCode
|
|
||||||
-methodMapping java.lang.System.gc System.GC.Collect
|
|
||||||
-methodMapping java.lang.System.runFinalization System.GC.WaitForPendingFinalizers
|
|
||||||
-methodMapping java.lang.System.getenv(String) System.Environment.GetEnvironmentVariable
|
|
||||||
-methodMapping java.lang.System.getenv() Antlr4.Runtime.Sharpen.Runtime.GetEnv
|
|
||||||
-methodMapping java.net.InetAddress.getLocalHost Antlr4.Runtime.Sharpen.Runtime.GetLocalHost
|
|
||||||
-methodMapping java.net.InetAddress.getCanonicalHostName ToString
|
|
||||||
-methodMapping java.util.Locale.Locale(String,String,String) Antlr4.Runtime.Sharpen.Extensions.CreateLocale
|
|
||||||
-methodMapping java.util.zip.Deflater.end Finish
|
|
||||||
-methodMapping java.util.zip.Inflater.end Finish
|
|
||||||
-methodMapping java.io.PrintWriter.print Write
|
|
||||||
-methodMapping java.io.PrintWriter.println WriteLine
|
|
||||||
-methodMapping java.lang.ArrayIndexOutOfBoundsException.ArrayIndexOutOfBoundsException(int) Antlr4.Runtime.Sharpen.Extensions.CreateIndexOutOfRangeException
|
|
||||||
-methodMapping java.lang.Appendable.append(java.lang.CharSequence,int,int) AppendRange
|
|
||||||
-methodMapping java.util.Date.Date(long) Antlr4.Runtime.Sharpen.Extensions.CreateDate
|
|
||||||
-methodMapping java.lang.Long.signum Antlr4.Runtime.Sharpen.Extensions.Signum
|
|
||||||
-methodMapping java.util.Collection.add Add
|
|
||||||
-methodMapping java.util.ArrayList.removeElement Remove
|
|
||||||
-methodMapping java.net.InetAddress.getByName Antlr4.Runtime.Sharpen.Extensions.GetAddressByName
|
|
||||||
-methodMapping java.net.ServerSocket.ServerSocket Antlr4.Runtime.Sharpen.Extensions.CreateServerSocket
|
|
||||||
-methodMapping java.net.Socket.Socket Antlr4.Runtime.Sharpen.Extensions.CreateSocket
|
|
||||||
-methodMapping java.net.Socket.bind Bind2
|
|
||||||
-methodMapping java.net.InetAddress.getAddress GetAddressBytes
|
|
||||||
-methodMapping java.math.BigInteger.toByteArray GetBytes
|
|
||||||
-methodMapping java.util.Vector.remove RemoveElement
|
|
||||||
-methodMapping java.util.concurrent.Semaphore.Semaphore Antlr4.Runtime.Sharpen.Extensions.CreateSemaphore
|
|
||||||
-methodMapping java.util.concurrent.Semaphore.acquire WaitOne
|
|
||||||
-methodMapping java.lang.ProcessBuilder.command SetCommand
|
|
||||||
-methodMapping java.io.IOException.IOException(java.lang.Throwable) Antlr4.Runtime.Sharpen.Extensions.CreateIOException
|
|
||||||
-fieldMapping java.util.Locale.US InvariantCulture
|
|
||||||
-typeMapping java.lang.Comparable System.IComparable
|
|
||||||
-typeMapping java.lang.Comparable<> System.IComparable
|
|
||||||
-typeMapping java.util.Comparator<> System.Collections.Generic.IComparer
|
|
||||||
-typeMapping java.util.HashSet<> System.Collections.Generic.HashSet
|
|
||||||
-typeMapping java.util.Set<> System.Collections.Generic.HashSet
|
|
||||||
-typeMapping java.util.concurrent.ConcurrentMap<,> System.Collections.Concurrent.ConcurrentDictionary
|
|
||||||
-typeMapping java.util.concurrent.ConcurrentHashMap<,> System.Collections.Concurrent.ConcurrentDictionary
|
|
||||||
-typeMapping java.io.File Antlr4.Runtime.Sharpen.FilePath
|
|
||||||
-typeMapping java.lang.StringBuilder System.Text.StringBuilder
|
|
||||||
-typeMapping java.nio.charset.Charset System.Text.Encoding
|
|
||||||
-typeMapping java.util.Locale System.Globalization.CultureInfo
|
|
||||||
-typeMapping java.io.Closeable System.IDisposable
|
|
||||||
-typeMapping java.lang.Error Antlr4.Runtime.Sharpen.Error
|
|
||||||
-typeMapping java.lang.NumberFormatException System.FormatException
|
|
||||||
-typeMapping java.util.Collections Antlr4.Runtime.Sharpen.Collections
|
|
||||||
-typeMapping java.util.LinkedList<> System.Collections.Generic.List
|
|
||||||
-typeMapping java.net.URL System.Uri
|
|
||||||
-typeMapping java.lang.IndexOutOfRangeException Antlr4.Runtime.Sharpen.IndexOutOfRangeException
|
|
||||||
-typeMapping java.lang.Process Antlr4.Runtime.Sharpen.SystemProcess
|
|
||||||
-typeMapping java.net.InetAddress System.Net.IPAddress
|
|
||||||
-typeMapping java.util.TimeZone System.TimeZoneInfo
|
|
||||||
-typeMapping java.util.ArrayList<> System.Collections.Generic.List
|
|
||||||
-typeMapping java.util.zip.Inflater ICSharpCode.SharpZipLib.Zip.Compression.Inflater
|
|
||||||
-typeMapping java.util.zip.Deflater ICSharpCode.SharpZipLib.Zip.Compression.Deflater
|
|
||||||
-typeMapping java.util.zip.ZipException ICSharpCode.SharpZipLib.SharpZipBaseException
|
|
||||||
-typeMapping java.util.zip.DataFormatException ICSharpCode.SharpZipLib.SharpZipBaseException
|
|
||||||
-typeMapping java.io.FileNotFoundException System.IO.FileNotFoundException
|
|
||||||
-typeMapping java.io.Reader System.IO.TextReader
|
|
||||||
-typeMapping java.util.SortedSet<> System.Collections.Generic.ICollection
|
|
||||||
-typeMapping java.lang.AssertionError System.Exception
|
|
||||||
-typeMapping java.io.InterruptedIOException System.Threading.ThreadInterruptedException
|
|
||||||
-typeMapping java.lang.RuntimeException Antlr4.Runtime.Sharpen.RuntimeException
|
|
||||||
-typeMapping java.net.MalformedURLException System.UriFormatException
|
|
||||||
-typeMapping java.lang.Package System.Reflection.Assembly
|
|
||||||
-typeMapping java.net.InetSocketAddress System.Net.IPEndPoint
|
|
||||||
-typeMapping java.net.SocketAddress System.Net.EndPoint
|
|
||||||
-typeMapping java.net.Socket System.Net.Sockets.Socket
|
|
||||||
-typeMapping java.net.ServerSocket System.Net.Sockets.Socket
|
|
||||||
-typeMapping java.math.BigInteger System.Numerics.BigInteger
|
|
||||||
-typeMapping java.util.Properties Antlr4.Runtime.Sharpen.Properties
|
|
||||||
-typeMapping java.util.concurrent.Semaphore System.Threading.Semaphore
|
|
||||||
-typeMapping java.util.Enumeration System.Collections.Generic.IEnumeration
|
|
||||||
-typeMapping java.lang.ProcessBuilder System.Diagnostics.ProcessStartInfo
|
|
||||||
-typeMapping java.util.UUID System.Guid
|
|
||||||
-propertyMapping java.lang.Class.getSimpleName Name
|
|
||||||
-propertyMapping java.nio.charset.Charset.defaultCharset Default
|
|
||||||
-propertyMapping java.util.Locale.getDefault CurrentCulture
|
|
||||||
-propertyMapping java.util.Locale.setDefault System.Threading.Thread.CurrentThread.CurrentCulture
|
|
||||||
-propertyMapping java.net.URL.getProtocol Scheme
|
|
||||||
-propertyMapping java.net.URL.getPort Port
|
|
||||||
-propertyMapping java.net.URL.getPath AbsolutePath
|
|
||||||
-propertyMapping java.util.TimeZone.getDefault System.TimeZoneInfo.Local
|
|
||||||
-propertyMapping java.util.zip.Deflater.finished IsFinished
|
|
||||||
-propertyMapping java.util.zip.Deflater.needsInput IsNeedingInput
|
|
||||||
-propertyMapping java.util.zip.Inflater.finished IsFinished
|
|
||||||
-propertyMapping java.util.zip.Inflater.needsInput IsNeedingInput
|
|
||||||
-propertyMapping java.util.zip.Inflater.getBytesRead TotalIn
|
|
||||||
-propertyMapping java.util.zip.Inflater.getRemaining RemainingInput
|
|
||||||
-propertyMapping java.lang.reflect.Field.getType FieldType
|
|
||||||
-propertyMapping java.lang.Class.getPackage Assembly
|
|
||||||
-propertyMapping java.net.InetSocketAddress.getAddress Address
|
|
||||||
-propertyMapping java.net.InetSocketAddress.getPort Port
|
|
||||||
-propertyMapping java.net.Socket.getRemoteSocketAddress RemoteEndPoint
|
|
||||||
-propertyMapping java.net.ServerSocket.getLocalSocketAddress LocalEndPoint
|
|
||||||
-propertyMapping java.net.Socket.setSoTimeout ReceiveTimeout
|
|
||||||
-propertyMapping java.net.Socket.getSoTimeout ReceiveTimeout
|
|
||||||
-propertyMapping java.net.Socket.setTcpNoDelay NoDelay
|
|
||||||
-propertyMapping java.net.Socket.isConnected Connected
|
|
||||||
-propertyMapping java.lang.ProcessBuilder.environment EnvironmentVariables
|
|
||||||
-propertyMapping java.lang.ProcessBuilder.directory WorkingDirectory
|
|
||||||
-fullyQualify Thread
|
|
||||||
-fullyQualify Pattern
|
|
||||||
-fullyQualify SocketAddress
|
|
||||||
-fullyQualify Cipher
|
|
||||||
-fullyQualify DH
|
|
||||||
-fullyQualify KeyPairGenDSA
|
|
||||||
-fullyQualify KeyPairGenRSA
|
|
||||||
-fullyQualify SignatureDSA
|
|
||||||
-fullyQualify SignatureRSA
|
|
||||||
-fullyQualify KeyPair
|
|
||||||
-fullyQualify GSSContext
|
|
||||||
-fullyQualify Test
|
|
||||||
|
|
||||||
-typeMapping java.lang.StackTraceElement System.Diagnostics.StackFrame
|
|
||||||
-methodMapping java.lang.StackTraceElement.getLineNumber GetFileLineNumber
|
|
||||||
|
|
||||||
-typeMapping org.antlr.v4.runtime.misc.ParseCancellationException ParseCanceledException
|
|
||||||
-typeMapping java.util.concurrent.CancellationException System.OperationCanceledException
|
|
||||||
-typeMapping java.lang.IndexOutOfBoundsException ArgumentOutOfRangeException
|
|
||||||
-typeMapping java.util.EmptyStackException InvalidOperationException
|
|
||||||
-typeMapping java.util.NoSuchElementException InvalidOperationException
|
|
||||||
-typeMapping java.io.InputStream System.IO.Stream
|
|
||||||
-typeMapping java.io.InputStreamReader System.IO.StreamReader
|
|
||||||
|
|
||||||
-typeMapping org.antlr.v4.runtime.misc.EqualityComparator<> System.Collections.Generic.IEqualityComparer
|
|
||||||
-methodMapping org.antlr.v4.runtime.misc.EqualityComparator.hashCode GetHashCode
|
|
||||||
-typeMapping org.antlr.v4.runtime.misc.AbstractEqualityComparator<> System.Collections.Generic.EqualityComparer
|
|
||||||
-typeMapping org.antlr.v4.runtime.misc.FlexibleHashMap<,> System.Collections.Generic.Dictionary
|
|
||||||
-typeMapping org.antlr.v4.runtime.misc.Predicate<> System.Predicate
|
|
||||||
-typeMapping org.antlr.v4.runtime.misc.Func0<> System.Func
|
|
||||||
-typeMapping org.antlr.v4.runtime.misc.Func1<,> System.Func
|
|
||||||
|
|
||||||
-typeMapping org.antlr.v4.runtime.misc.Tuple System.Tuple
|
|
||||||
-typeMapping org.antlr.v4.runtime.misc.Tuple2<,> System.Tuple
|
|
||||||
-propertyMapping org.antlr.v4.runtime.misc.Tuple2.getItem1 Item1
|
|
||||||
-propertyMapping org.antlr.v4.runtime.misc.Tuple2.getItem2 Item2
|
|
||||||
-typeMapping org.antlr.v4.runtime.misc.Tuple3<,,> System.Tuple
|
|
||||||
-propertyMapping org.antlr.v4.runtime.misc.Tuple3.getItem1 Item1
|
|
||||||
-propertyMapping org.antlr.v4.runtime.misc.Tuple3.getItem2 Item2
|
|
||||||
-propertyMapping org.antlr.v4.runtime.misc.Tuple3.getItem3 Item3
|
|
||||||
|
|
||||||
-typeMapping org.antlr.v4.runtime.misc.IntegerList System.Collections.Generic.List<int>
|
|
||||||
-typeMapping org.antlr.v4.runtime.misc.IntegerStack System.Collections.Generic.List<int>
|
|
||||||
-methodMapping org.antlr.v4.runtime.misc.IntegerStack.push Add
|
|
||||||
|
|
||||||
-typeMapping org.antlr.v4.runtime.ANTLRErrorListener<> IAntlrErrorListener
|
|
||||||
-typeMapping org.antlr.v4.runtime.ANTLRErrorStrategy IAntlrErrorStrategy
|
|
||||||
-typeMapping org.antlr.v4.runtime.ANTLRFileStream AntlrFileStream
|
|
||||||
-typeMapping org.antlr.v4.runtime.ANTLRInputStream AntlrInputStream
|
|
|
@ -1,29 +0,0 @@
|
||||||
/*
|
|
||||||
* [The "BSD license"]
|
|
||||||
* Copyright (c) 2013 Terence Parr
|
|
||||||
* Copyright (c) 2013 Sam Harwell
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
|
||||||
* Redistribution and use in source and binary forms, with or without
|
|
||||||
* modification, are permitted provided that the following conditions
|
|
||||||
* are met:
|
|
||||||
*
|
|
||||||
* 1. Redistributions of source code must retain the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer.
|
|
||||||
* 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer in the
|
|
||||||
* documentation and/or other materials provided with the distribution.
|
|
||||||
* 3. The name of the author may not be used to endorse or promote products
|
|
||||||
* derived from this software without specific prior written permission.
|
|
||||||
*
|
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
||||||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
||||||
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
||||||
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
||||||
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
||||||
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
||||||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
||||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*/
|
|
|
@ -1,53 +0,0 @@
|
||||||
# Semi-automatic conversion with Sharpen
|
|
||||||
|
|
||||||
The update process for keeping the C# port up-to-date uses several steps, taking
|
|
||||||
advantage of automatic translation features provided by Sharpen.
|
|
||||||
|
|
||||||
1. Changes are made to the reference (Java) version of ANTLR 4. Since the C# port
|
|
||||||
is based on the optimized release of ANTLR 4, this means commits were pushed to
|
|
||||||
the antlr4/optimized branch.
|
|
||||||
2. The changes are merged into the antlr4/sharpen branch of the ANTLR 4 repository,
|
|
||||||
and any changes to the Java code necessary for successful translation are kept
|
|
||||||
in this branch.
|
|
||||||
3. In the antlr4cs/sharpen branch (of the C# port repository), the submodule
|
|
||||||
reference/antlr4 is updated to include the latest code from item 2.
|
|
||||||
4. The configuration file `sharpen-all-options.txt` is updated as necessary for
|
|
||||||
the translation.
|
|
||||||
5. The code is translated to update the antlr4cs/sharpen branch.
|
|
||||||
6. The antlr4cs/sharpen branch is merged back into antlr4cs/master, which contains
|
|
||||||
the compilable code. Git's internal merge abilities allow us to continually
|
|
||||||
maintain the extensive patches necessary to produce a proper binary from the
|
|
||||||
output of Sharpen.
|
|
||||||
|
|
||||||
## Setting Up Sharpen
|
|
||||||
|
|
||||||
1. In Eclipse, Import... -> General -> Existing Projects into Workspace
|
|
||||||
2. Import `${antlr4cs}/reference/sharpen/sharpen.core`, and do not check the option
|
|
||||||
to copy the project into the workspace.
|
|
||||||
3. Create a new run configuration based on "Eclipse Application"
|
|
||||||
* Main -> Program to Run -> Run an application: sharpen.core.application
|
|
||||||
* Arguments -> configure according to the "Sharpen options" section
|
|
||||||
|
|
||||||
## Sharpen options
|
|
||||||
|
|
||||||
**Custom Variables**
|
|
||||||
|
|
||||||
* `${antlr4cs}` - the path where the ANTLR 4 C# port is checked out locally
|
|
||||||
* `${m2_home}` - the path to your Maven configuration folder, e.g. `~/.m2`
|
|
||||||
|
|
||||||
**Program arguments**
|
|
||||||
|
|
||||||
-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -consoleLog
|
|
||||||
-data ${antlr4cs}/reference -srcFolder runtime/Java/src
|
|
||||||
antlr4
|
|
||||||
-header ${antlr4cs}/reference/sharpen-header.txt
|
|
||||||
-cp ${m2_home}/repository/org/abego/treelayout/org.abego.treelayout.core/1.0.1/org.abego.treelayout.core-1.0.1.jar
|
|
||||||
@sharpen-all-options.txt
|
|
||||||
|
|
||||||
**VM arguments**
|
|
||||||
|
|
||||||
-Dosgi.requiredJavaVersion=1.5 -Xms1g -Xmx2g -XX:+UseG1GC -XX:+TieredCompilation -XX:MaxPermSize=384m
|
|
||||||
|
|
||||||
**Working directory**
|
|
||||||
|
|
||||||
${antlr4cs}/reference
|
|
Loading…
Reference in New Issue