louisukiri / peg-sharp Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/peg-sharp
Automatically exported from code.google.com/p/peg-sharp
Say, we have rule "a? b? c". Now we parse "ac" and "bc". HOW I can determine
which optional part was specified? In 'results' array in both cases will be two
items. Detecting by Text? No way, text can be too big and strictly speaking
should not be involved in this procedure.
Any suggestions?
Original issue reported on code.google.com by [email protected]
on 21 May 2015 at 1:35
"Type 'Writer' already defines a member called 'DoReferencesLocal' with the
same parameter types".
Original issue reported on code.google.com by [email protected]
on 24 Dec 2010 at 10:41
please, make error format like visual studio: <file>(<line>,<col>): error
<Tool-short-name><error-number>: <error-message>
example:
UbbParser.peg(7,20): error Peg1: Expected whitespace or identifier or comment
With this error format Visual Studio allowed quick go to error place in
peg-file.
Required changes in code:
[Serializable]
internal sealed class ParserException : Exception
{
public ParserException()
{
}
public ParserException(string message) : base(message)
{
}
public ParserException(int line, int col, string file, string message) :
this(line, col, file, message, (Exception)null)
{
}
public ParserException(int line, int col, string file, string format, params object[] args) :
this(line, col, file, string.Format(format, args))
{
}
public ParserException(int line, int col, string file, string message, Exception inner) :
base(message, inner)
{
this.Line = line;
this.Column = col;
this.File = file;
}
public readonly int? Line;
public readonly int? Column;
public string File;
[SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)]
private ParserException(SerializationInfo info, StreamingContext context) : base(info, context)
{
}
}
Main:
...
if (ms_verbosity == 0)
Console.Error.WriteLine("{0}({1},{2}): error Peg1: {3}", e.File, e.Line, e.Column, e.Message);
...
private static void DoGenerate(string pegFile)
{
try
{
...
}
catch (ParserException e)
{
if (e.File == null)
e.File = pegFile;
throw;
}
}
Original issue reported on code.google.com by [email protected]
on 20 Aug 2010 at 8:57
File "WriteNonTerminal.cs" is missing in repository.
Original issue reported on code.google.com by [email protected]
on 24 Dec 2010 at 10:38
In file "Writer.cs" there is reference to "TemplateEngine" class, but no such
class found.
Original issue reported on code.google.com by [email protected]
on 24 Dec 2010 at 10:39
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.