Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Steal a bit more structure from NieczaFrontendSTD
- Loading branch information
Showing
4 changed files
with
119 additions
and
2 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Yuck. This file is part of the bootstrap mechanism; it is used to parse | ||
// Perl 6 grammars, because Perl 6's own grammar cannot be written using yacc. | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace Niecza.Compiler { | ||
class MiniParser { | ||
char[] src; | ||
string src_s; | ||
RuntimeUnit unit; | ||
|
||
public MiniParser(string gsrc, RuntimeUnit core) { | ||
this.src_s = gsrc; | ||
this.src = gsrc.ToCharArray(); | ||
this.unit = core; | ||
} | ||
|
||
public void Parse() { | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
} |
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