I'm working with Software Engineering (Node.JS, JavaScript and AWS Tools) and Front-End Engineering (React.JS, CSS/Sass and Single-SPA)
I’m currently studying ReactJS, TypeScript and Python
Mini Compiler - Computer Science, Mackenzie
License: GNU General Public License v3.0
A avaliação léxica está gerando saidas incorretas no arquivo de texto.
Cada estado final deve ser exclusivo e não compartilhado.
@cstipkovic em que momento deve ir para o estado q53? (encontrando um espaço, uma letra ...)
@cstipkovic o automato sai do estado q1 e vai para o estado 68 ficando em looping no estado caso hajam mais letras [A-z], porem não poderia fazer isso no estado q1?
@cstipkovic no final do while devo ter um espaço ou a abertura de um parenteses q11 -> q12?
@cstipkovic após entrar no estado q93 eu só posso sair se encontrar algo diferente de um * após /* ?
EX:
/**/ inválido
/* / válido
/x/ válido
/ x / válido
/1/ válido
/ 1 */ válido
@cstipkovic percebi que em todos os finais de estado tenho um caracter de espaço, isso está correto?
Essa é a msg do debug dizendo que falta algum free no malloc que existe:
==44951== Memcheck, a memory error detector
==44951== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==44951== Using Valgrind-3.14.0.GIT and LibVEX; rerun with -h for copyright info
==44951== Command: ./main --leak-check=full
==44951==
==44951== Invalid read of size 1
==44951== at 0x1000AFD2C: strlen (in /usr/local/Cellar/valgrind/HEAD-26e21fe/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==44951== by 0x10032BF2E: __strcat_chk (in /usr/lib/system/libsystem_c.dylib)
==44951== by 0x100002DC7: main (main.c:725)
==44951== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==44951==
==44951==
==44951== Process terminating with default action of signal 11 (SIGSEGV)
==44951== Access not within mapped region at address 0x0
==44951== at 0x1000AFD2C: strlen (in /usr/local/Cellar/valgrind/HEAD-26e21fe/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==44951== by 0x10032BF2E: __strcat_chk (in /usr/lib/system/libsystem_c.dylib)
==44951== by 0x100002DC7: main (main.c:725)
==44951== If you believe this happened as a result of a stack
==44951== overflow in your program's main thread (unlikely but
==44951== possible), you can try to increase the size of the
==44951== main thread stack using the --main-stacksize= flag.
==44951== The main thread stack size used in this run was 8388608.
==44951==
==44951== HEAP SUMMARY:
==44951== in use at exit: 18,270 bytes in 162 blocks
==44951== total heap usage: 184 allocs, 22 frees, 92,254 bytes allocated
==44951==
==44951== LEAK SUMMARY:
==44951== definitely lost: 408 bytes in 8 blocks
==44951== indirectly lost: 6,864 bytes in 7 blocks
==44951== possibly lost: 72 bytes in 3 blocks
==44951== still reachable: 32 bytes in 1 blocks
==44951== suppressed: 10,894 bytes in 143 blocks
==44951== Rerun with --leak-check=full to see details of leaked memory
==44951==
==44951== For counts of detected and suppressed errors, rerun with: -v
==44951== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 4 from 4)
Segmentation fault: 11
Alguem pode dar uma olhada, por favor?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.