aboutsummaryrefslogtreecommitdiff
path: root/1
diff options
context:
space:
mode:
authorAkshay <[email protected]>2021-04-30 17:55:19 +0100
committerAkshay <[email protected]>2021-04-30 17:55:19 +0100
commitda1764a9f839e1d29b2bee12d35534f71f05c6ff (patch)
treed410c2191e571f9e6945ed88afd3faa1175675b3 /1
parent9ff0cec8b507d9164d8828dcb2a87012e140fdf5 (diff)
law & order
Diffstat (limited to '1')
-rw-r--r--1/input1
-rw-r--r--1/main.l20
2 files changed, 0 insertions, 21 deletions
diff --git a/1/input b/1/input
deleted file mode 100644
index 2ec8b41..0000000
--- a/1/input
+++ /dev/null
@@ -1 +0,0 @@
1alskjdfa;dsfja;kdsjfa;klsdjfa;lkjsdfkaljdsf;lakjsdf
diff --git a/1/main.l b/1/main.l
deleted file mode 100644
index 24f78ca..0000000
--- a/1/main.l
+++ /dev/null
@@ -1,20 +0,0 @@
1%{
2int v = 0;
3int c = 0;
4%}
5
6%%
7[aeiouAEIOU] v++;
8[a-zA-Z] c++;
9. ;
10%%
11
12int main(void) {
13 yylex();
14 printf("%d vowels\n", v);
15 printf("%d consonants\n", c);
16}
17
18int yywrap() {
19 return(1);
20}