Skip to content

Commit

Permalink
📂 ezr v2.0.0.0.0 (part 2)!
Browse files Browse the repository at this point in the history
Check AFTERINSTALL.txt for more info
  • Loading branch information
Uralstech committed Nov 2, 2022
1 parent d998561 commit 739b3f5
Show file tree
Hide file tree
Showing 8 changed files with 478 additions and 218 deletions.
20 changes: 19 additions & 1 deletion AFTERINSTALL.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,30 @@
THANK YOU FOR DOWNLOADING EZRSHELL
-----------------------------------------------------------------------------------------------------

[31-10-22] ezr v2.0.0.0.0!
[31-10-22] ezr v2.0.0.0.0 (part 1)!
- Simpler lower case keywords
- Starting work on dictionary type
- 'len' function is now 'length_of'
- Some bugfixes for error messages
- A lot of object-related bugfixes

[02-11-22] ezr v2.0.0.0.0 (part 2)!
- New dictionary type
- List type is now mutable
- All builtin types are now hashable
- New 'DICTIONARY-KEY' error tag for key access/assign errors
- New 'hash' function
- Removed 'extend' and 'remove' functions
- 'type_of' function now returns name of input values' class (eg: type_of('abc') = 'String')
- 'convert' function 'type' input should be [STRING] literals 'String', 'Int', 'Float' or 'Bool'

Other news
- ezr v2 will be released in parts! Here's what you can expect from part III:
- Optimizations for dictionary type
- New tuple type

-----------------------------------------------------------------------------------------------------

Check the documentation for more information -> https://github.com/Uralstech/ezrlang/wiki
Found any bugs? Have a feature request? Post it here -> https://github.com/Uralstech/ezrlang/issues
Main ezr GitHub -> https://github.com/Uralstech/ezrlang
Expand Down
63 changes: 62 additions & 1 deletion BEFOREINSTALL.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,65 @@ You can still download and view the documentation for ezr v1
- ezr v1 Builds and VSCode extension:
'Builds' -> 'legacy' -> 'V1 m22 - m24'
- ezr v1 documentation:
'documentation' -> 'ezr v1.24.0.3.0'
'documentation' -> 'ezr v1.24.0.3.0'

-----------------------------------------------------------------------------------------------------
EZR v2 QUICK UPGRADE GUIDE

KEYWORD CHANGES

GLOBAL -> global
ITEM -> item
IF -> if
ELSE -> else
COUNT -> count
FROM -> from
AS -> as
TO -> to
STEP -> step
WHILE -> while
SKIP -> skip
STOP -> stop
FUNCTION -> function
RETURN -> return
OBJECT -> object
WITH -> with
TRY -> try
ERROR -> error
DO -> do
END -> end
AND -> and
OR -> or
IN -> in
INVERT -> invert
INCLUDE -> include

BUILTIN VARIABLE CHANGES:

NOTHING -> nothing
TRUE -> true
FALSE -> false
EZR_VERSION -> ezr_version

BUILTIN FUNCTION CHANGES:

SHOW -> show
SHOW_ERROR -> show_error
GET -> get
GET_INT -> get_int
GET_FLOAT -> get_float
CLEAR_SCREEN -> clear
TYPE_OF -> type_of*
CONVERT -> convert**
EXTEND -> [REMOVED]***
REMOVE -> [REMOVED]***
INSERT -> insert
LEN -> length_of
SPLIT -> split
JOIN -> join
REPLACE -> replace
RUN -> run

*now returns name of input values' class (eg: type_of('abc') = 'String')
**'type' input should be [STRING] literals 'String', 'Int', 'Float' or 'Bool'
***removed as [LIST] type is mutable now
Binary file modified Builds/ezr-language-support-1.10.0.vsix
Binary file not shown.
Binary file modified Builds/ezrShell v2m0 Installer.exe
Binary file not shown.
8 changes: 4 additions & 4 deletions Libraries/base/base_libObject.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ def copy(self):

return copy

def __repr__(self):
return f'<libObject {self.name}>'

def initialize(self, context):
return RuntimeResult().success(Nothing())
return RuntimeResult().success(Nothing())

def __repr__(self):
return f'<libObject {self.name}>'
7 changes: 1 addition & 6 deletions build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,4 @@
title ezr builder

cls
pyinstaller ezrShell.spec
pause

cls
cd dist\ezrShell
ezrShell.exe
pyinstaller ezrShell.spec
2 changes: 1 addition & 1 deletion examples/tic-tac-toe/tic-tac-toe_demo.ezr
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ item char: 'x'
while true do
item move: get_int('Enter position (' + char + ') ')
item move: Move(move, char)
if type_of(move) = 'STRING' do
if type_of(move) = 'String' do
show(move)
skip
else do
Expand Down
Loading

0 comments on commit 739b3f5

Please sign in to comment.