Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
2024_compilation_Bazizi_Zaynoune
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BAZIZI Zakaria
2024_compilation_Bazizi_Zaynoune
Commits
dfdabfd0
Commit
dfdabfd0
authored
Jan 19, 2024
by
BAZIZI Zakaria
Browse files
Options
Downloads
Patches
Plain Diff
travail le soir comme un grand
parent
96995605
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/l.cfg
+32
-7
32 additions, 7 deletions
src/l.cfg
with
32 additions
and
7 deletions
src/l.cfg
+
32
−
7
View file @
dfdabfd0
...
...
@@ -12,6 +12,7 @@ Tokens
espaces
=
(' ' | 13 | 10)+;
commentaire
=
'#'
[[0 .. 0xffff] - [10 + 13]]* (10 | 13 | 10 13);
plus
=
'+'
;
pointvirgule = ';' ;
moins
=
'-'
;
ou = '|' ;
et
=
'&'
;
...
...
@@ -27,7 +28,12 @@ accoladed = '}' ;
crochetg
=
'['
;
crochetd = ']' ;
type
=
'bool'
| 'entier' ;
ins_ctl
=
'si'
| 'alors' |'tantque' | 'faire' |'sinon' | 'retour' ;
\\
faire un tocket par truc
si
=
'si'
;
alors = 'alors' ;
tantque
=
'tantque'
;
faire = 'faire' ;
sinon
=
'sinon'
;
retourner = 'retourner' ;
lire
=
'lire'
;
ecrire = 'ecrire' ;
nombre
=
chiffre+;
...
...
@@ -59,9 +65,28 @@ mult =
{fois}
mult
fois
non
|
{diviser}
mult
diviser
non
|
{neg}
neg
;
neg
=
{non}
non
neg
|
{brackets}
brackets
;
brackets
=
{or}
dparenthese
or
gparenthese
|
{nombre}
nombre
|
{vrai}
vrai
|
{faux}
faux
|
{lire}
lire
;
dec
=
{id} id | ;
\ No newline at end of file
{non}
non
neg
|
{exp}
exp
;
exp
=
{or}
dparenthese
or
gparenthese
|
{nombre}
nombre
|
{vrai}
vrai
|
{faux}
faux
|
{lire}
lire
;
ins
=
{affectation}
var
egale
exp
pointvirgule
|{tq}
tantque
exp
faire
bloc
pointvirgule
|{si}
si
exp
alors
bloc
pointvirgule
|{sisinon}
si
exp
alors
[alor]
:bloc
sinon
[sino]
:bloc
pointvirgule
|{return}
retourner
exp
pointvirgule
|{listeexp}
id
gparenthese
exp
dparenthese
pointvirgule
|{write}
ecrire
gparenthese
exp
dparenthese
pointvirgule
|{bloc}
bloc
pointvirgule
;
bloc
=
{instr} li ;
li
=
{listeinstr} ins li | {epsilon} epsilon ;
epsilon
=
;
var = {id} id | {id_crochet} id crochetg exp crochetd ;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment