Skip to content

Commit

Permalink
update "moo" example to align with manual
Browse files Browse the repository at this point in the history
  • Loading branch information
genivia-inc committed Feb 25, 2024
1 parent 53c0eb7 commit e995e03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/moo.l
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
%option dotall main
// option find generates a search engine to match the specified patterns
%option fast find main

%top{
#include <iostream> // std::cout etc.
Expand All @@ -23,7 +24,6 @@ cow \<[Cc]ow\>

{cow} herd++; // found a cow, bump count by one
out() << moo << " ";
. // do nothing
<<EOF>> out() << herd << " cows!" << std::endl; return 0;

%%

0 comments on commit e995e03

Please sign in to comment.