This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hello World! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%{ | |
#include <stdio.h> | |
#include <string.h> | |
#include "y.tab.h" | |
void yyerror (char *c); | |
%} | |
/* Todos outros tokens não especificados. */ | |
OTHERS . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%{ | |
#include <stdio.h> | |
#include <string.h> | |
void yyerror (char *c); | |
int yylex (void); | |
%} | |
%union { | |
struct { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%{ | |
#include <stdio.h> | |
#include <string.h> | |
#include "y.tab.h" | |
void yyerror (char *c); | |
%} | |
CHARS [a-zA-Z0-9]+ | |
STRING \"{CHARS}\" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%{ | |
#include <stdio.h> | |
#include <string.h> | |
void yyerror (char *c); | |
int yylex (void); | |
%} | |
%union { | |
char *value; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%{ | |
#include <stdio.h> | |
#include <string.h> | |
#include "y.tab.h" | |
void yyerror (char *c); | |
%} | |
CHARS [a-zA-Z0-9]+ | |
STRING \"{CHARS}\" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%{ | |
#include <stdio.h> | |
#include <string.h> | |
void yyerror (char *c); | |
int yylex (void); | |
%} | |
%union { | |
char *value; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%{ | |
#include <stdio.h> | |
#include <string.h> | |
#include "y.tab.h" | |
void yyerror (char *c); | |
%} | |
CHARS [a-zA-Z0-9]+ | |
STRING \"{CHARS}\" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%{ | |
#include <stdio.h> | |
#include <string.h> | |
void yyerror (char *c); | |
int yylex (void); | |
%} | |
%union { | |
char *value; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include "antlr4-runtime.h" | |
#include "TLexer.h" | |
#include "TParser.h" | |
#include "TParserBaseVisitor.h" | |
using namespace antlrcpptest; | |
using namespace antlr4; |
OlderNewer