Skip to content

Commit

Permalink
Merge pull request #44 from Klotzi111/updateJay
Browse files Browse the repository at this point in the history
updated jay for windows and added readme for jay
  • Loading branch information
praeclarum authored Feb 2, 2024
2 parents b676146 + 9331c7a commit 9f9d98c
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CLanguage/prebuild.ps1
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
23 changes: 23 additions & 0 deletions Lib/README.md
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 modified Lib/jay.exe
Binary file not shown.
3 changes: 0 additions & 3 deletions jay.bat

This file was deleted.

0 comments on commit 9f9d98c

Please sign in to comment.