Skip to content

Commit 60698f9

Browse files
committed
add c# initial details
1 parent 1c5bb2a commit 60698f9

File tree

9 files changed

+30
-2
lines changed

9 files changed

+30
-2
lines changed

.devcontainer/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ENV DEBIAN_FRONTEND=noninteractive
55

66
# installing texlive and utils
77
RUN apt-get update && \
8-
apt-get -y install --no-install-recommends texlive texlive-latex-extra latexmk make git procps locales curl imagemagick && \
8+
apt-get -y install --no-install-recommends texlive texlive-latex-extra latexmk make git procps locales curl poppler-utils && \
99
rm -rf /var/lib/apt/lists/*
1010

1111
# generating locales

run.sh

100644100755
+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
#!/bin/bash
22

3+
cd /workspaces/syntax-diagram-generator/src
34
python3 eebnf_exporter.py ../syntax ../out y

src/build-file.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
cd $1
44
pdflatex -shell-escape -interaction=batchmode $2
55

6+
pdftoppm -png "${2%.*}.pdf" > "${2%.*}.png"
7+
68
rm -f *.aux
79
rm -f *.log
810
rm -f *.pdf
9-
# rm -f $2
11+
rm -f $2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
int literal = whole number;
2+
3+
long literal = whole number, 'L';
4+
5+
unsigned int literal = whole number, 'U';
6+
7+
unsigned long literal = whole number, 'UL';
8+
9+
float literal = real number , "f" | "F" ;
10+
11+
double literal = real number , "d" | "D" ;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
method call = method name, "(", { argument }*(",") ")" ;
+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
program = [using clause], { instruction, ";" }* ;
2+
using clause = "using", "static", class name ;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
variable decl. = [const], type name, { variable name, [ "=", expression]}+(",") , ';' ;
2+
3+
variable name = identifier ;
4+
5+
type name = identifier ;

syntax/csharp/syntax/identifier.ebnf

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
identifier = (letter | "_" ), {letter | digit | "_" }* ;
2+
3+
letter = "A" | "..." | "Z" | "a" | "..." | "z" ;
4+
5+
digit = "0" | "..." | "9" ;

syntax/csharp/syntax/statement.ebnf

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
statement = assignment statement | method call ;

0 commit comments

Comments
 (0)