Web-Ide mit aufgenommen

This commit is contained in:
Riwoldt
2026-04-09 14:14:56 +02:00
parent 64816c45cc
commit 15cfaf332d
489 changed files with 186891 additions and 0 deletions
@@ -0,0 +1,25 @@
const hdl = `
Hdl <: Base{
Root := Chip
identifier := (letter) (alnum)*
Name := identifier
Chip = "CHIP" Name OpenBrace ChipBody CloseBrace
ChipBody = InList? OutList? PartList ClockedList?
InList = "IN" PinList Semi
OutList = "OUT" PinList Semi
PartList = BuiltinPart | Parts
PinList = List<PinDecl, Comma>
PinDecl = Name PinWidth?
PinWidth = OpenSquare decNumber CloseSquare
BuiltinPart = "BUILTIN" Semi
Parts = "PARTS:" Part*
Part = Name "(" Wires ")" Semi
Wires = List<Wire, Comma>
Wire = WireSide Equal (WireSide | True | False)
WireSide = Name SubBus?
SubBus = OpenSquare decNumber subBusRest? CloseSquare
subBusRest = ".." decNumber
ClockedList = "CLOCKED" SimplePinList Semi
SimplePinList = List<Name, Comma>
}`;
export default hdl;