Skip to content

class BasicLexer#289

Merged
seeditsolution merged 1 commit intoseeditsolution:masterfrom
vedang6575:patch-1
Oct 3, 2020
Merged

class BasicLexer#289
seeditsolution merged 1 commit intoseeditsolution:masterfrom
vedang6575:patch-1

Conversation

@vedang6575
Copy link
Contributor

Thus we will need some basic tokens such as NAME, NUMBER, STRING. In any programming language, there will be space between two characters. Thus we create an ignore literal. Then we also create the basic literals like ‘=’, ‘+’ etc., NAME tokens are basically names of variables, which can be defined by the regular expression [a-zA-Z_][a-zA-Z0-9_]. STRING tokens are string values and are bounded by quotation marks(” “). This can be defined by the regular expression \”.?\”

 Thus we will need some basic tokens such as NAME, NUMBER, STRING. In any programming language, there will be space between two characters. Thus we create an ignore literal. Then we also create the basic literals like ‘=’, ‘+’ etc., NAME tokens are basically names of variables, which can be defined by the regular expression [a-zA-Z_][a-zA-Z0-9_]*. STRING tokens are string values and are bounded by quotation marks(” “). This can be defined by the regular expression \”.*?\”
@seeditsolution seeditsolution merged commit 5bc3d0e into seeditsolution:master Oct 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants