Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
alang-grupoa
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
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
Code review 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
albruiz
alang-grupoa
Commits
1b812d94
Commit
1b812d94
authored
Jun 11, 2020
by
marivil
Browse files
Options
Downloads
Patches
Plain Diff
Incluidos valores lógicos estilo C.
parent
423ab6af
No related branches found
No related tags found
1 merge request
!1
Arbol
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
inter05.l
+13
-1
13 additions, 1 deletion
inter05.l
pruebita.c
+11
-3
11 additions, 3 deletions
pruebita.c
with
24 additions
and
4 deletions
inter05.l
+
13
−
1
View file @
1b812d94
...
...
@@ -53,7 +53,7 @@ unsigned keycodes[KWLEN] = {
TAN,
VAR,
WHILE,
DO
DO
,
};
static void lower(char *s);
...
...
@@ -115,6 +115,18 @@ COMMULT "/*"([^*]|\*+[^*/])*\*+"/"
char *res;
//lower(yytext); Lenguaje case-sensitive
//Valores logicos
if(strcmp(yytext,"true") == 0 ){
yyFloat(yylval) = 1;
yyFlag(yylval) = fFLOAT;
return FLOAT;
}else if (strcmp(yytext,"false") == 0){
yyFloat(yylval) = 0;
yyFlag(yylval) = fFLOAT;
return FLOAT;
}
//Palabras clave
for (i = 0; i<KWLEN; i++ ){
...
...
This diff is collapsed.
Click to expand it.
pruebita.c
+
11
−
3
View file @
1b812d94
...
...
@@ -7,6 +7,14 @@ NJpasds
var
x_
=
5
;
var
x_
+=
2
;
print
(
x_
);
dasd
var
x1
=
true
;
if
(
true
)
{
print
(
"Hola
\n
"
);
if
(
!
false
)
{
print
(
"Caracola
\n
"
);
}
}
print
(
x1
);
/* HOLA PUTA*/
\ 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