Skip to content
Snippets Groups Projects
Commit 11bd8c86 authored by Lior Spach's avatar Lior Spach
Browse files

Temporary regex rules file

parents
Branches
No related tags found
No related merge requests found
program:
^ program +(IDENT) *\(input,output\); *$
ident:
([a-zA-Z_][a-zA-Z_1-9]*)
vars:
^ *var +(IDENTS *: *TIPO *;)* *$
idents:
(IDENT)(, *IDENT)*
tipo:
integer
bloco:
^ *begin *$
(EXPR)*
^ *end *$
expr:
*IDENT *\(param\); *
param:
num || ident
op:[+-*/&|^(&&)(||)(^^)]
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment