-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from Klotzi111/updateJay
updated jay for windows and added readme for jay
- Loading branch information
Showing
4 changed files
with
28 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
$oldPWD = Get-Location | ||
Set-Location Parser | ||
$skeleton = Get-Content -Raw "../../Lib/skeleton.cs" | ||
$skeleton | &"../../Lib/jay.exe" -vc CParser.jay > CParser.cs | ||
Set-Location $oldPWD |
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 @@ | ||
# What is `jay` | ||
|
||
`jay` is a Yacc parser generator for C#. | ||
|
||
It is used in this repository to generate the C# parser code for the C language. | ||
This repository contains a precompiled binary of `jay` for macOS/iOS (x86-64) and Windows (x86-64). | ||
|
||
The source can be found here: | ||
https://github.com/mono/mono/tree/main/mcs/jay | ||
|
||
More information can be found here: | ||
https://github.com/brannon/cs-yacc | ||
|
||
The exact version of `jay` this repository contains precompiled binaries for is: | ||
https://github.com/mono/mono/tree/38b0227c1ce0c53058a5d78d080923435132773a/mcs/jay | ||
|
||
# How to use it | ||
|
||
This repository contains a shell and powershell script to execute `jay`. | ||
|
||
They are located here: | ||
[prebuild.sh](/CLanguage/prebuild.sh) | ||
[prebuild.ps1](/CLanguage/prebuild.ps1) |
Binary file not shown.