t-edson / PicPas

Compilador en Pascal para microcontroladores PIC / Pascal compiler for PIC microcontrollers
GNU General Public License v2.0
87 stars 27 forks source link

error variable initial value #21

Closed alexpseletr closed 6 years ago

alexpseletr commented 6 years ago

var contador:dword=0;

error

t-edson commented 6 years ago

No. In PicPas you cannot "declare and assign".

The section VAR is only for declaractions. Maybe later PicPas implement this functionality.

alexpseletr commented 6 years ago

There is a project (http://www.pas2pic.hu ) that possibly facilitates development, it is at command prompt and has an array implementation, initial value of variables and others

I do not say that it is as good as an ideal that has developed but should help

t-edson commented 6 years ago

It looks a very basic compiler. And it's discontinued. Anyway, I will check.