Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
compilerLaLog
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
Container 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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
JAUJAY Augustin
compilerLaLog
Commits
2fceafcc
"...goshimmer_without_tipselection.git" did not exist on "65a00c4e4c3bb6a40d5e960d311b98ea93654b82"
Commit
2fceafcc
authored
3 years ago
by
Claire GIROT--PERSON
Browse files
Options
Downloads
Patches
Plain Diff
debut_q6.1
parent
f042cf13
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
DEADJOE
+0
-17
0 additions, 17 deletions
DEADJOE
pfx/basic/lexer.mll
+9
-1
9 additions, 1 deletion
pfx/basic/lexer.mll
with
9 additions
and
18 deletions
DEADJOE
deleted
100644 → 0
+
0
−
17
View file @
f042cf13
*** These modified files were found in JOE when it aborted on Tue Mar 8 11:29:53 2022
*** JOE was aborted because the terminal closed
*** Fichier '(Sans nom)'
/homes/c21girot/.gitconfig
*** Fichier '/homes/c21girot/.gitconfig'
eci est le fichier de configuration personnel de Git.
[user]
# Veuillez adapter et décommenter les lignes suivantes :
# name = Claire GIROT--PERSON
# email = c21girot@fl-tp-br-428.imta.fr
*** Fichier '* Startup Log *'
Traitement de '/etc/joe/editorrc'...Traitement de '/etc/joe/ftyperc'...Finished processing /etc/joe/ftyperc
Finished processing /etc/joe/editorrc
This diff is collapsed.
Click to expand it.
pfx/basic/lexer.mll
+
9
−
1
View file @
2fceafcc
{
open
Parser
open
Ast
let
mk_int
nb
=
try
INT
(
int_of_string
nb
)
...
...
@@ -23,6 +24,13 @@ rule token = parse
(* integers *)
|
digit
+
as
nb
{
mk_int
nb
}
(* commands *)
(***** TO COMPLETE *****)
(* | "push" {Push (mkint nb)} ne se fait pas que avec ocamllex - push 12 est une phrase, push et 12 sont deux unités lexicales, wtf *)
|
"pop"
{
Pop
}
|
"swap"
{
Swap
}
|
"add"
{
Add
}
|
"sub"
{
Sub
}
|
"mul"
{
Mul
}
|
"div"
{
Div
}
|
"rem"
{
Rem
}
(* illegal characters *)
|
_
as
c
{
failwith
(
Printf
.
sprintf
"Illegal character '%c': "
c
)
}
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