An open API service indexing awesome lists of open source software.

https://github.com/dbetz/etalk

A Simple Object-Oriented Language
https://github.com/dbetz/etalk

Last synced: 2 days ago
JSON representation

A Simple Object-Oriented Language

Awesome Lists containing this project

README

        

# etalk
A Simple Object-Oriented Language

The program starts in a function named "MAIN".

```
program:
*

definition:

|

class-definition:
CLASS [ : ]
*
End Class

class-statement:
IVARS [ , ]*
| CVARS [ , ]*
|
|

method-definition:
METHOD '[' THIS [ [ ]* ] ']'
*
END METHOD

cmethod-definition:
CMETHOD '[' THIS [ [ ]* ] ']'
*
END CMETHOD

function-definition:
FUNCTION ( [ [ , ]* ] )
*
END FUNCTION

statement:

|
|
| ;

if-statement:
IF
THEN
*
[ ELSE
* ]
END IF

while-statement:
WHILE DO
*
END WHILE

return-statement:
RETURN

expression:
+
| -
| *
| <
| =
| >
| :=
| ( [ [ , ]* ] )
| '[' [ [ ]* ] ']'
| ( )
|
|
|
```