Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DP_projet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VILLAUME Lucas
DP_projet
Commits
9f65d59b
Commit
9f65d59b
authored
1 year ago
by
VILLAUME Lucas
Browse files
Options
Downloads
Patches
Plain Diff
Création des expression
parent
143c3688
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
modele/Expression.js
+19
-0
19 additions, 0 deletions
modele/Expression.js
modele/Nombre.js
+14
-0
14 additions, 0 deletions
modele/Nombre.js
modele/Texte.js
+14
-0
14 additions, 0 deletions
modele/Texte.js
with
47 additions
and
0 deletions
modele/Expression.js
0 → 100644
+
19
−
0
View file @
9f65d59b
class
Expression
{
#contenu
;
construction
(
content
=
""
){
this
.
#contenu
=
content
;
}
afficherContenu
(){
return
this
.
#contenu
;
}
isNombre
(){
return
false
;
}
isTexte
(){
return
false
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
modele/Nombre.js
0 → 100644
+
14
−
0
View file @
9f65d59b
class
Nombre
extends
Expression
{
constructor
(
content
){
super
(
content
);
}
afficherContenu
(){
return
super
.
afficherContenu
();
}
isNombre
(){
return
true
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
modele/Texte.js
0 → 100644
+
14
−
0
View file @
9f65d59b
class
Texte
extends
Expression
{
constructor
(
content
){
super
(
content
);
}
afficherContenu
(){
return
super
.
afficherContenu
();
}
isTexte
(){
return
true
;
}
}
\ No newline at end of file
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